mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-01 01:06:05 +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
|
||||
|
||||
if compare_versions $(VBoxManage -v | sed -e 's/r.*//g' -e 's/_.*//g') $min_vbox_ver false; then
|
||||
echo "Compatible version of VirtualBox found."
|
||||
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."
|
||||
else
|
||||
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 "A compatible version of VirtualBox was not found. Please download and install it from https://www.virtualbox.org/"
|
||||
echo "VirtualBox is not installed (or not added to the path)."
|
||||
echo "Please download and install it from https://www.virtualbox.org/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user