fix: update debian with web_pipe(), correct output and ignore NEVER_RELEASED

This commit is contained in:
Martin Wimpress 2024-04-20 10:09:41 +01:00 committed by Martin Wimpress
parent 5cb578acc6
commit f94e975029
1 changed files with 3 additions and 3 deletions

View File

@ -907,8 +907,8 @@ function releases_crunchbang++() {
function releases_debian() {
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)
DEBCURRENT=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
DEBOLD=$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep -e '>[1-9][0-9]\.' | grep -v 'live' | grep -v NEVER | cut -d'>' -f 9 | cut -d'/' -f 1 | tac)
echo -n "${DEBCURRENT} "
echo ${DEBOLD}
}