From da8c33afe0dd90d5c962475cc684a32c951519c8 Mon Sep 17 00:00:00 2001 From: Stan Antov Date: Sun, 16 Nov 2014 10:24:32 -0600 Subject: [PATCH] Check requirements --- reqcheck.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 reqcheck.sh diff --git a/reqcheck.sh b/reqcheck.sh new file mode 100755 index 0000000..775e7d6 --- /dev/null +++ b/reqcheck.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +VBoxManage -v foo >/dev/null 2>&1 || { + echo >&2 "Ensure Virtual Box is installed and in the path. Aborting."; + open 'https://www.virtualbox.org/wiki/Downloads'; + exit 1; +} + +vagrant -v foo >/dev/null 2>&1 || { + echo >&2 "Ensure vagrant is installed and in the path. Aborting."; + open 'https://www.vagrantup.com/downloads.html'; + exit 1; +} + +vagrant plugin list | grep 'hostmanager' &> /dev/null + +if [ $? != 0 ]; then + echo "Ensure vagrant-hostmanager plugin for vagrant is installed. Aborting."; + echo "Run this: vagrant plugin install vagrant-hostmanager"; + exit 1; +fi + +echo "You're all set." \ No newline at end of file