From 130cd6a8112f48609b5545c4978ed8f0b53708a1 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 25 Jun 2024 11:20:01 +0100 Subject: [PATCH] fix: update holoiso to only download the most recent release - Close #1302 - Close #1301 --- quickget | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 11928bf0d5..8f4846b129 100755 --- a/quickget +++ b/quickget @@ -831,7 +831,7 @@ function editions_haiku() { } function releases_holoiso() { - web_pipe "https://github.com/HoloISO/releases/releases/latest" | grep -o -e 'releases/tag/[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]' | head -n 1 | cut -d'/' -f 3 + echo "latest" } function releases_kali() { @@ -1963,6 +1963,7 @@ function get_haiku() { function get_holoiso() { local HASH="" local URL="" + RELEASE="$(web_pipe "https://github.com/HoloISO/releases/releases" | grep -o -e 'releases/tag/[[:digit:]]\+\(\.[[:digit:]]\+\)*' | head -n 1 | cut -d'/' -f 3)" URL=$(web_pipe "https://api.github.com/repos/HoloISO/releases/releases" | jq -r ".[] | select(.tag_name==\"${RELEASE}\") | .body" | sed -n 's/.*\(https:\/\/[^ ]*holoiso\.ru\.eu\.org\/[^ ]*\.iso\).*/\1/p' | head -n 1) echo "${URL} ${HASH}" }