refactor: update haiku to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:03:13 +01:00 committed by Martin Wimpress
parent 8f413b0ec9
commit b11dcdc0fa
1 changed files with 2 additions and 5 deletions

View File

@ -2260,11 +2260,8 @@ function get_guix() {
function get_haiku() { function get_haiku() {
local EDITION="${1:-}" local EDITION="${1:-}"
local ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso" local ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso"
# local URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}" # domain gone local URL="http://mirror.rit.edu/haiku/${RELEASE}"
local URL="http://mirror.rit.edu/haiku/${RELEASE}" # NY, USA HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
# local URL="https://mirrors.tnonline.net/haiku/haiku-release/${RELEASE}" # Sweden
# local URL="https://mirror.aarnet.edu.au/pub/haiku/${RELEASE}" # Aus
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }