Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions reqcheck.sh
Original file line number Diff line number Diff line change
@@ -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."