From f907ddac4166f32646444f5656ed8766701755af Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 21 Apr 2024 14:00:27 +0100 Subject: [PATCH] chore: preserve recent changes to get_vanillaos() --- quickget | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quickget b/quickget index 563bd27..722bece 100755 --- a/quickget +++ b/quickget @@ -2668,10 +2668,10 @@ function get_ubuntu() { } function get_vanillaos() { - # TODO: Dynamically get the latest release from GitHub - local HASH=$(web_pipe "https://cdn.vanillaos.org/assets/ISO/22.10-r9/VanillaOS-22.10-all.20231009.sha256.txt" | cut_1) - local URL="https://cdn.vanillaos.org/assets/ISO/22.10-r9/VanillaOS-22.10-all.20231009.iso" - echo "${URL} ${HASH}" + local ISO=$(web_pipe "https://api.github.com/repos/Vanilla-OS/live-iso/releases" | grep 'download_url' | grep "${RELEASE}" | head -1 | cut -d'"' -f4) + local HASH_URL=$(echo "${ISO}" | sed s'|\.iso|\.sha256\.txt|g') + local HASH=$(web_pipe "${HASH_URL}" | cut_1) + echo "${ISO} ${HASH}" } function get_void() {