mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Enable create_vm() for most OSs
This commit is contained in:
parent
7fe2980b13
commit
30ebabab04
1 changed files with 8 additions and 13 deletions
21
quickget
21
quickget
|
@ -12,16 +12,11 @@ export LC_ALL=C
|
||||||
# function get_newos() {
|
# function get_newos() {
|
||||||
# local EDITION="${1:-}"
|
# local EDITION="${1:-}"
|
||||||
# local HASH=""
|
# local HASH=""
|
||||||
# local ISO=""
|
# local ISO="newos-${RELEASE}-${EDITION}-amd64.iso"
|
||||||
# local URL=""
|
# local URL="https://www.newos.org/download/${RELEASE}/${EDITION}"
|
||||||
#
|
#
|
||||||
# URL="https://www.newos.org/download/${RELEASE}/${EDITION}"
|
# HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1)
|
||||||
# ISO="newos-${RELEASE}-${EDITION}-amd64.iso"
|
# echo "${URL}/${ISO} ${HASH}"
|
||||||
# web_get "${URL}/${ISO}" "${VM_PATH}"
|
|
||||||
# web_get "${URL}/SHA256SUMS" "${VM_PATH}"
|
|
||||||
# HASH=$(cut -d' ' -f1 < "${VM_PATH}/SHA256SUMS")
|
|
||||||
# check_hash "${ISO}" "${HASH}"
|
|
||||||
# make_vm_config "${ISO}"
|
|
||||||
# }
|
# }
|
||||||
|
|
||||||
function cleanup() {
|
function cleanup() {
|
||||||
|
@ -1835,8 +1830,8 @@ if [ -n "${2}" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VM_PATH="${OS}-${RELEASE}-${EDITION}"
|
VM_PATH="${OS}-${RELEASE}-${EDITION}"
|
||||||
validate_release releases_"${OS}"
|
validate_release "releases_${OS}"
|
||||||
get_"${OS}" "${EDITION}"
|
create_vm "$("get_${OS}" "${EDITION}")"
|
||||||
elif [ "${OS}" == "macos" ]; then
|
elif [ "${OS}" == "macos" ]; then
|
||||||
# macOS doesn't use create_vm()
|
# macOS doesn't use create_vm()
|
||||||
validate_release releases_macos
|
validate_release releases_macos
|
||||||
|
@ -1861,8 +1856,8 @@ if [ -n "${2}" ]; then
|
||||||
validate_release releases_windows
|
validate_release releases_windows
|
||||||
get_windows "${LANG}"
|
get_windows "${LANG}"
|
||||||
else
|
else
|
||||||
validate_release releases_"${OS}"
|
validate_release "releases_${OS}"
|
||||||
get_"${OS}"
|
create_vm "$("get_${OS}")"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "ERROR! You must specify a release."
|
echo "ERROR! You must specify a release."
|
||||||
|
|
Loading…
Reference in a new issue