lowering VBox version requirement

This commit is contained in:
Jack
2019-07-12 14:36:25 +03:00
committed by GitHub
parent 129bf61030
commit 8b99bc92ea
+9 -8
View File
@@ -2,11 +2,11 @@
# Semi-automatic installer of macOS on VirtualBox # Semi-automatic installer of macOS on VirtualBox
# (c) myspaghetti, licensed under GPL2.0 or higher # (c) myspaghetti, licensed under GPL2.0 or higher
# url: https://github.com/img2tab/macos-guest-virtualbox # url: https://github.com/img2tab/macos-guest-virtualbox
# version 0.71.2 # version 0.71.3
# Requirements: 40GB available storage on host # Requirements: 40GB available storage on host
# Dependencies: bash >= 4.0, unzip, wget, dmg2img, # Dependencies: bash >= 4.0, unzip, wget, dmg2img,
# VirtualBox with Extension Pack >= 6.0 # VirtualBox with Extension Pack >= 5.2.2
# Customize the installation by setting these variables: # Customize the installation by setting these variables:
vmname="macOS" # name of the VirtualBox virtual machine vmname="macOS" # name of the VirtualBox virtual machine
@@ -147,9 +147,10 @@ if [ -n "$(cygcheck -V 2>/dev/null)" ]; then
} }
echo "Found VBoxManage" echo "Found VBoxManage"
else else
echo "Please make sure VirtualBox is installed, and that the path to the" echo "Please make sure VirtualBox version 5.2.2 or higher is installed, and that"
echo "VBoxManage.exe executable is in the PATH variable, or assigned in the script" echo "the path to the VBoxManage.exe executable is in the PATH variable, or assign"
printf 'to the variable '${white_on_black}'cmd_path_VBoxManage'${default_color}' including the name of the executable.' echo "in the script the full path including the name of the executable to"
printf 'the variable '"${white_on_black}"'cmd_path_VBoxManage'"${default_color}"
exit exit
fi fi
fi fi
@@ -177,7 +178,7 @@ elif [[ "$(cat /proc/sys/kernel/osrelease 2>/dev/null)" =~ Microsoft ]]; then
fi fi
# everything else (not cygwin and not wsl) # everything else (not cygwin and not wsl)
elif [ -z "$(VBoxManage -v 2>/dev/null)" ]; then elif [ -z "$(VBoxManage -v 2>/dev/null)" ]; then
echo "Please make sure VirtualBox version 6.0 or higher is installed," echo "Please make sure VirtualBox version 5.2.2 or higher is installed,"
echo "and that the path to the VBoxManage executable is in the PATH variable." echo "and that the path to the VBoxManage executable is in the PATH variable."
exit exit
fi fi
@@ -187,8 +188,8 @@ vbox_version="$(VBoxManage -v 2>/dev/null)"
if [ -z "${vbox_version}" ]; then if [ -z "${vbox_version}" ]; then
echo "Can't determine VirtualBox version. Exiting." echo "Can't determine VirtualBox version. Exiting."
exit exit
elif [ "${vbox_version:0:1}" -lt 6 ]; then elif [[ ! ${vbox_version:0:1} == 6 && ! "${vbox_version:0:6}" =~ 5\.2\.1[0-9] && ! "${vbox_version:0:5}" =~ 5\.2\.[2-9] ]]; then
echo "Please make sure VirtualBox version 6.0 or higher is installed." echo "Please make sure VirtualBox version 5.2.2 or higher is installed."
exit exit
fi fi