From b2dfb55406b5a141635fceb60f464872638ae574 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 19 Apr 2024 14:16:23 +0100 Subject: [PATCH] refactor: update debian to use web_pipe() --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 4287579..40ccec2 100755 --- a/quickget +++ b/quickget @@ -2011,7 +2011,7 @@ function get_debian() { local HASH="" local ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso" local URL="" - DEBCURRENT=$(wget -q https://cdimage.debian.org/debian-cd/ -O- |grep '\.[0-9]/'|cut -d\> -f9|cut -d\/ -f1) + DEBCURRENT=$(web_pipe "https://cdimage.debian.org/debian-cd/" |grep '\.[0-9]/'|cut -d\> -f9|cut -d\/ -f1) case ${RELEASE} in "${DEBCURRENT}") URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/amd64/iso-hybrid";; *) URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/amd64/iso-hybrid/";; @@ -2021,7 +2021,7 @@ function get_debian() { URL="${URL/hybrid/cd}" ISO="${ISO/-live/}" fi - HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut_1) + HASH=$(web_pipe "${URL}/SHA512SUMS" | grep "${ISO}" | cut_1) echo "${URL}/${ISO} ${HASH}" }