fix: debian from newest and on one line

This commit is contained in:
zen0bit 2024-04-17 13:52:29 +02:00 committed by Martin Wimpress
parent d280a48acd
commit ce39944f43
1 changed files with 5 additions and 4 deletions

View File

@ -867,10 +867,11 @@ function releases_crunchbang++() {
} }
function releases_debian() { function releases_debian() {
DEBCURRENT=$(wget -q https://cdimage.debian.org/debian-cd/ -O- |grep '\.[0-9]/'|cut -d\> -f9|cut -d\/ -f1) local DEBOLD
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 ) 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 ${DEBOLD} ${DEBCURRENT} echo -n "${DEBCURRENT}"
echo ${DEBOLD}
} }
function editions_debian() { function editions_debian() {