mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-05 03:05:51 +02:00
Land #61, Print current vbox version if less than minimum version
This commit is contained in:
commit
b2c9443a5c
|
@ -47,10 +47,19 @@ elif [ $(uname) = "Linux" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if compare_versions $(VBoxManage -v | sed -e 's/r.*//g' -e 's/_.*//g') $min_vbox_ver false; then
|
if [ -x "$(which VBoxManage)" ] ; then
|
||||||
|
current_vbox_ver=$(VBoxManage -v | sed -e 's/r.*//g' -e 's/_.*//g')
|
||||||
|
if compare_versions $current_vbox_ver $min_vbox_ver false; then
|
||||||
echo "Compatible version of VirtualBox found."
|
echo "Compatible version of VirtualBox found."
|
||||||
else
|
else
|
||||||
echo "A compatible version of VirtualBox was not found. Please download and install it from https://www.virtualbox.org/"
|
echo "A compatible version of VirtualBox was not found."
|
||||||
|
echo "Current Version=[$current_vbox_ver], Minimum Version=[$min_vbox_ver]"
|
||||||
|
echo "Please download and install it from https://www.virtualbox.org/"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "VirtualBox is not installed (or not added to the path)."
|
||||||
|
echo "Please download and install it from https://www.virtualbox.org/"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user