Skip to content

Commit

Permalink
fix: update holoiso to only download the most recent release
Browse files Browse the repository at this point in the history
- Close #1302
- Close #1301
  • Loading branch information
flexiondotorg committed Jun 25, 2024
1 parent 3a07d35 commit 130cd6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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}"
}
Expand Down

0 comments on commit 130cd6a

Please sign in to comment.