Refactor Debian support to enable past releases

pull/380/head
Martin Wimpress 3 years ago
parent 614ea2f4c3
commit 6b54c58173
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 10
      quickget

@ -248,7 +248,8 @@ function releases_cachyos() {
} }
function releases_debian() { function releases_debian() {
echo 11.2.0 echo 10.11.0 \
11.2.0
} }
function editions_debian() { function editions_debian() {
@ -819,12 +820,17 @@ function get_debian() {
local EDITION="" local EDITION=""
local HASH="" local HASH=""
local ISO="" local ISO=""
local URL="https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid" local URL=""
if [ -n "${1}" ]; then if [ -n "${1}" ]; then
EDITION="${1}" EDITION="${1}"
fi 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" ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso"
HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1) HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1)
web_get "${URL}/${ISO}" "${VM_PATH}" web_get "${URL}/${ISO}" "${VM_PATH}"

Loading…
Cancel
Save