fix(parrotsec): change grep to not use perl regexp so MacOS/BSD are happier

This commit is contained in:
Phil Clifford 2024-10-18 12:16:03 +01:00 committed by Phil Clifford
parent 66a0af3a92
commit 8eda1e1150
1 changed files with 1 additions and 1 deletions

View File

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