From feeb910fb24f6ff9522a8e7fac99c8275d617be3 Mon Sep 17 00:00:00 2001 From: harlekin <5800926-mw102@users.noreply.gitlab.com> Date: Wed, 26 Jul 2023 14:24:24 +0000 Subject: [PATCH] Fix: filter for sig files to prevent wrong download --- dmg-wrapper/SheepIt-Run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmg-wrapper/SheepIt-Run.sh b/dmg-wrapper/SheepIt-Run.sh index 78a83c6..de80394 100755 --- a/dmg-wrapper/SheepIt-Run.sh +++ b/dmg-wrapper/SheepIt-Run.sh @@ -26,7 +26,7 @@ if [ ! -e "./$APP" ]; then #If JRE exists in the dmg, don't download it BIN="$LAUDIR/$APP" JREVERSION="$LAUDIR/JRE-Version" echo "Checking for JRE updates" - JRE_LATEST="$(curl --connect-timeout 20 --retry 4 --silent --show-error $REPO | grep $JREDISTRO | grep name | grep tar | grep -v json | grep -v txt | cut -d '"' -f 4 | head -n 1)" + JRE_LATEST="$(curl --connect-timeout 20 --retry 4 --silent --show-error $REPO | grep $JREDISTRO | grep name | grep tar | grep -v json | grep -v txt | grep -v sig | cut -d '"' -f 4 | head -n 1)" if [ -z "$JRE_LATEST" ]; then # Empty JRE_LATEST is a good indicator of a critical failure echo "!!! Failed parsing JRE information! Aborting !!!"