From 4ef37a6807b03371a649a31ac09f7a7e162596c7 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Fri, 18 Oct 2024 12:16:03 +0100 Subject: [PATCH] fix(parrotsec): change grep to not use perl regexp so MacOS/BSD are happier --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index 3ddc11789a..4118932b98 100755 --- a/quickget +++ b/quickget @@ -879,7 +879,7 @@ function releases_oraclelinux() { function releases_parrotsec() { #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() {