Refactor Haiku support to add editions

pull/373/head
Martin Wimpress 3 years ago
parent 4cee4d3d63
commit 338a03c571
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 20
      quickget

@ -304,10 +304,15 @@ function releases_gentoo(){
}
function releases_haiku() {
echo r1beta3-x86_64 \
r1beta3-x86_gcc2h
echo r1beta3
}
function editions_haiku() {
echo x86_64 \
x86_gcc2h
}
function releases_kali() {
echo latest \
weekly
@ -935,14 +940,17 @@ function get_gentoo() {
}
function get_haiku() {
local BASE=""
local EDITION=""
local ISO=""
local URL=""
local HASH=""
BASE=$(echo "${RELEASE}" | cut -d'-' -f1)
URL="https://cdn.haiku-os.org/haiku-release/${BASE}"
ISO="haiku-${RELEASE}-anyboot.iso"
if [ -n "${1}" ]; then
EDITION="${1}"
fi
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}"

Loading…
Cancel
Save