From 6b54c5817378b81063c7e018c78705a46fec5742 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 21 Feb 2022 20:07:58 +0000 Subject: [PATCH] Refactor Debian support to enable past releases --- quickget | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 2834c14..3f1230e 100755 --- a/quickget +++ b/quickget @@ -248,7 +248,8 @@ function releases_cachyos() { } function releases_debian() { - echo 11.2.0 + echo 10.11.0 \ + 11.2.0 } function editions_debian() { @@ -819,12 +820,17 @@ function get_debian() { local EDITION="" local HASH="" local ISO="" - local URL="https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid" + local URL="" if [ -n "${1}" ]; then EDITION="${1}" fi + case ${RELEASE} in + 11.2.0) URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/amd64/iso-hybrid";; + *) URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/amd64/iso-hybrid/" + esac + ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso" HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1) web_get "${URL}/${ISO}" "${VM_PATH}"