fix(quickget): only list Debian archive versions with live images

Filter archive releases to only include those with -live directories,
ensuring live image editions are actually available for download.
This commit is contained in:
Martin Wimpress 2026-01-23 22:45:18 +00:00 committed by Martin Wimpress
parent f725c1998b
commit 98735ad60a
1 changed files with 2 additions and 1 deletions

View File

@ -655,7 +655,8 @@ function releases_debian() {
NEW=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
echo -n "${NEW}"
MAJ=$(echo "${NEW}" | cut -d'.' -f 1)
ARCHIVE="$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep folder | grep -v NEVER | cut -d'"' -f 6)"
# Get archive versions that have -live directories (live images available)
ARCHIVE="$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep folder | grep -v NEVER | grep '\-live/' | cut -d'"' -f 6 | sed 's/-live\///')"
for i in {1..2}; do
CUR=$((MAJ - i))
OLD=$(grep ^"${CUR}" <<< "${ARCHIVE}" | tail -n 1 | tr -d '/')