Skip to content

Commit

Permalink
Fix HoloISO downloads - closes quickemu-project#1062
Browse files Browse the repository at this point in the history
  • Loading branch information
lj3954 committed Apr 17, 2024
1 parent f0fb2c8 commit 5aac48b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ function editions_haiku() {
}

function releases_holoiso() {
wget -q https://github.com/HoloISO/holoiso/releases/latest -O- | grep -o -e 'releases/tag/[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]' | head -1 | cut -d/ -f3
wget -q https://github.com/HoloISO/releases/releases/latest -O- | grep -o -e 'releases/tag/[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]' | head -1 | cut -d/ -f3
}

function releases_kali() {
Expand Down Expand Up @@ -1448,10 +1448,6 @@ function web_get() {
echo Downloading $(pretty_name "${OS}") ${RELEASE} ${EDITION:+ $EDITION}: ${FILE}
fi

if [ "${OS}" != "macos" ]; then
USER_AGENT="InternetRecovery/1.0"
fi

if command -v curl &>/dev/null; then
if ! curl --progress-bar --location --output "${DIR}/${FILE}" --continue-at - --user-agent "${USER_AGENT}" "${HEADERS[@]}" -- "${URL}"; then
echo "ERROR! Failed to download ${URL} with curl."
Expand Down Expand Up @@ -2277,11 +2273,9 @@ function get_haiku() {

function get_holoiso() {
#local HASH=""
local ISO=$(wget -q -O- "https://api.github.com/repos/HoloISO/holoiso/releases" | sed 's/ /\n/g' | grep "HoloISO_${RELEASES}" | cut -d'\' -f1 | cut -d'/' -f4)
local URL="https://cd2.holoiso.ru.eu.org"
# Can't find hash
#HASH=$(wget -q -O- "${URL}/${ISO}.sha256sum" | cut -d' ' -f1)
echo "${URL}/${ISO} #${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}"
}

function get_kali() {
Expand Down

0 comments on commit 5aac48b

Please sign in to comment.