From e96fc18f1f75523d5695eb1682d2a89cdd8c25c0 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 10:29:25 +0000 Subject: [PATCH] Refactor get_debian() to add create_vm() compatibility --- quickget | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/quickget b/quickget index f154e71..16b9598 100755 --- a/quickget +++ b/quickget @@ -746,19 +746,15 @@ function get_cachyos() { function get_debian() { local EDITION="${1:-}" local HASH="" - local ISO="" + local ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso" local URL="" 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/" + *) 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}" - check_hash "${ISO}" "${HASH}" - make_vm_config "${ISO}" + echo "${URL}/${ISO} ${HASH}" } function get_devuan() {