Merge branch 'update-haiku' into combined-updates

This commit is contained in:
Phil Clifford 2022-06-18 02:44:53 +01:00
commit 3a4b135a93

View File

@ -963,8 +963,10 @@ function get_ghostbsd() {
function get_haiku() {
local EDITION="${1:-}"
local ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso"
local URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}"
local HASH=""
# 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)
echo "${URL}/${ISO} ${HASH}"