fix: limit debian releases so missing downloads are not present

This commit is contained in:
Martin Wimpress 2024-04-28 13:21:14 +01:00
parent e9b0fcfa89
commit 3d36215c64
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -712,9 +712,8 @@ function releases_debian() {
local NEW="" local NEW=""
local OLD="" local OLD=""
NEW=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1) NEW=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
OLD=$(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) OLD=$(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 | head -20)
echo -n "${NEW} " echo ${NEW} ${OLD}
echo ${OLD}
} }
function editions_debian() { function editions_debian() {