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