From ce39944f434baaa4a5dcafcbf5111a735af42f53 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Wed, 17 Apr 2024 13:52:29 +0200 Subject: [PATCH] fix: debian from newest and on one line --- quickget | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/quickget b/quickget index 38e772b..0c4d8ad 100755 --- a/quickget +++ b/quickget @@ -867,10 +867,11 @@ function releases_crunchbang++() { } function releases_debian() { - DEBCURRENT=$(wget -q https://cdimage.debian.org/debian-cd/ -O- |grep '\.[0-9]/'|cut -d\> -f9|cut -d\/ -f1) - local DEBOLD=$(wget -q https://cdimage.debian.org/cdimage/archive/ -O- |grep -e '>[1-9][0-9]\.'|grep -v 'live' | cut -d\> -f9|cut -d\/ -f1 ) - - echo ${DEBOLD} ${DEBCURRENT} + local DEBOLD + DEBCURRENT=$(wget -q https://cdimage.debian.org/debian-cd/ -O- | grep '\.[0-9]/' | cut -d\> -f9 | cut -d\/ -f1) + DEBOLD=$(wget -q https://cdimage.debian.org/cdimage/archive/ -O- | grep -e '>[1-9][0-9]\.' | grep -v 'live' | cut -d\> -f9 | cut -d'/' -f1 | tac) + echo -n "${DEBCURRENT}" + echo ${DEBOLD} } function editions_debian() {