Refactor get_haiku()

pull/373/head
Martin Wimpress 3 years ago
parent 8ad252295b
commit 174600a615
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 8
      quickget

@ -1430,16 +1430,18 @@ function get_garuda() {
}
function get_haiku() {
local BASE=""
local ISO=""
local URL=""
local HASH=""
validate_release "releases_haiku"
BASE=$(echo "${RELEASE}" | cut -d'-' -f1)
URL="https://cdn.haiku-os.org/haiku-release/${BASE}"
ISO="haiku-${RELEASE}-anyboot.iso"
URL="https://cdn.haiku-os.org/haiku-release/$(echo $RELEASE | awk -F '-' '{print $1}')/${ISO}"
HASH=$(wget -q -O- ${URL}.sha256 | grep "${ISO}" | cut -d' ' -f4)
web_get "${URL}" "${VM_PATH}"
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}"
}

Loading…
Cancel
Save