From b11dcdc0faaca3b215c83ce133abdb8e4588e3df Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 22:03:13 +0100 Subject: [PATCH] refactor: update haiku to use web_pipe() --- quickget | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/quickget b/quickget index b42ea1d..635c121 100755 --- a/quickget +++ b/quickget @@ -2260,11 +2260,8 @@ function get_guix() { function get_haiku() { local EDITION="${1:-}" 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}" # NY, USA - # 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) + local URL="http://mirror.rit.edu/haiku/${RELEASE}" + HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) echo "${URL}/${ISO} ${HASH}" }