fix: Better match parrotsec releases

This commit is contained in:
Liam 2025-04-07 14:21:26 -07:00
parent daba59d46c
commit 9dc70808c5
1 changed files with 1 additions and 1 deletions

View File

@ -913,7 +913,7 @@ function releases_oraclelinux() {
function releases_parrotsec() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://download.parrot.sh/parrot/iso/" | grep -o -E 'href="[[:digit:]]\.[[:digit:]]+' | sort -nr | head -n 3 | cut -d\" -f 2 )
echo $(web_pipe "https://download.parrot.sh/parrot/iso/" | grep -o -E 'href="([[:digit:]]+\.)+[[:digit:]]+/' | sort -nr | head -n 3 | cut -d\" -f 2 | cut -d'/' -f 1)
}
function editions_parrotsec() {