fix(quickget): update Parrot Security releases and editions

- Only list releases that have ISO files available
- Remove htb edition (discontinued in 7.0 series)
- Filter out releases with empty ISO directories
This commit is contained in:
Martin Wimpress 2026-01-23 22:50:08 +00:00 committed by Martin Wimpress
parent a10864541b
commit b1ccbe9e61
1 changed files with 10 additions and 2 deletions

View File

@ -911,11 +911,19 @@ function releases_oraclelinux() {
function releases_parrotsec() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://deb.parrot.sh/parrot/iso/" | grep -o -E 'href="([[:digit:]]+\.)+[[:digit:]]+/' | sort -nr | head -n 3 | cut -d\" -f 2 | cut -d'/' -f 1)
# Only return releases that have ISO files available
local RELEASES=""
for REL in $(web_pipe "https://deb.parrot.sh/parrot/iso/" | grep -o -E 'href="([[:digit:]]+\.)+[[:digit:]]+/' | sort -Vr | head -n 5 | cut -d\" -f 2 | cut -d'/' -f 1); do
if web_pipe "https://download.parrot.sh/parrot/iso/${REL}/" | grep -q '\.iso"'; then
RELEASES="${RELEASES} ${REL}"
fi
done
echo ${RELEASES}
}
function editions_parrotsec() {
echo home htb security
# htb edition was discontinued after 6.x series
echo home security
}
function releases_pclinuxos() {