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

View File

@ -2266,10 +2266,9 @@ function get_haiku() {
}
function get_holoiso() {
#local HASH=""
local URL
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}"
local HASH=""
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)
echo "${URL} ${HASH}"
}
function get_kali() {