Refactor get_haiku() to add create_vm() compatibility

This commit is contained in:
Martin Wimpress 2022-02-23 10:37:17 +00:00
parent c36463d85d
commit 723a185346
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 3 additions and 7 deletions

View File

@ -846,16 +846,12 @@ function get_ghostbsd() {
function get_haiku() {
local EDITION="${1:-}"
local ISO=""
local URL=""
local ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso"
local URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}"
local HASH=""
URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}"
ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso"
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
echo "${URL}/${ISO} ${HASH}"
}
function get_kali() {