refactor: update holoiso to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:03:44 +01:00 committed by Martin Wimpress
parent b11dcdc0fa
commit 297fa080f3
1 changed files with 3 additions and 4 deletions

View File

@ -2266,10 +2266,9 @@ function get_haiku() {
} }
function get_holoiso() { function get_holoiso() {
#local HASH="" local HASH=""
local URL local URL=$(web_pipe "https://api.github.com/repos/HoloISO/releases/releases" | jq ".[] | select(.tag_name==\"${RELEASE}\") | .body" | grep -Po "https://\S+holoiso.ru.eu.org/\S+.iso" | head -n 1)
URL=$(wget -q -O- "https://api.github.com/repos/HoloISO/releases/releases" | jq ".[] | select(.tag_name==\"${RELEASE}\") | .body" | grep -Po "https://\S+holoiso.ru.eu.org/\S+.iso" | head -n 1) echo "${URL} ${HASH}"
echo "${URL}"
} }
function get_kali() { function get_kali() {