From a2db7348a0c6181bc4726aea31403995a4992b27 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 23 Feb 2022 11:32:55 +0000 Subject: [PATCH] Add Debian netinst to the editions. Closes #381 --- quickget | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index f3f6ae2..f380ac7 100755 --- a/quickget +++ b/quickget @@ -242,7 +242,7 @@ function releases_debian() { } function editions_debian() { - echo standard cinnamon gnome kde lxde lxqt mate xfce + echo standard cinnamon gnome kde lxde lxqt mate xfce netinst } function releases_devuan() { @@ -757,6 +757,12 @@ function get_debian() { 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 + + if [ "${EDITION}" == "netinst" ]; then + URL="$(echo "${URL}" | sed 's/-live//' | sed 's/hybrid/cd/')" + ISO="$(echo "${ISO}" | sed 's/-live//')" + fi + HASH=$(wget -q -O- "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1) echo "${URL}/${ISO} ${HASH}" }