Fix virtualbox presence check

This commit is contained in:
Filippo Anarratone
2018-03-15 13:58:52 +00:00
parent e9d24d11a3
commit 1bcb1af9e2

View File

@@ -29,10 +29,10 @@ check_vagrant() {
# Returns 0 if not installed or 1 if installed
check_virtualbox_installed() {
if ! which VBoxManage >/dev/null; then
echo "0"
else
if which VBoxManage >/dev/null; then
echo "1"
else
echo "0"
fi
}