Fix: filter for sig files to prevent wrong download

This commit is contained in:
harlekin
2023-07-26 14:24:24 +00:00
parent ccc37ed0c1
commit feeb910fb2

View File

@@ -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 !!!"