macOS, Windows & Ubuntu do not use create_vm()

The get_() function for macOS, Windows and Ubuntu are more complete because they do not solely use wget/aria2.

Their get_() functions include the code to create VMs and therefore do not use the generic create_vm() helper.
This commit is contained in:
Martin Wimpress 2022-02-22 18:48:42 +00:00
parent d20ad7aa1c
commit 6b86e81e72
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -1931,7 +1931,12 @@ if [ -n "${2}" ]; then
VM_PATH="${OS}-${RELEASE}-${EDITION}" VM_PATH="${OS}-${RELEASE}-${EDITION}"
validate_release releases_"${OS}" validate_release releases_"${OS}"
get_"${OS}" "${EDITION}" get_"${OS}" "${EDITION}"
elif [ "${OS}" == "macos" ]; then
# macOS doesn't use create_vm()
validate_release releases_macos
get_macos
elif [[ "${OS}" == *"ubuntu"* ]]; then elif [[ "${OS}" == *"ubuntu"* ]]; then
# Ubuntu doesn't use create_vm()
validate_release releases_ubuntu validate_release releases_ubuntu
get_ubuntu get_ubuntu
elif [ "${OS}" == "windows" ]; then elif [ "${OS}" == "windows" ]; then
@ -1946,6 +1951,7 @@ if [ -n "${2}" ]; then
exit 1 exit 1
fi fi
fi fi
# Windows doesn't use create_vm()
validate_release releases_windows validate_release releases_windows
get_windows "${LANG}" get_windows "${LANG}"
else else