From 12bfd18df26cd438c8a1e9919b11df0036bedc8d Mon Sep 17 00:00:00 2001 From: Nebula Date: Mon, 12 Dec 2022 18:47:21 -0500 Subject: [PATCH] jq arg broke stuff --- palera1n.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/palera1n.sh b/palera1n.sh index 6643b87..9efbd87 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -492,11 +492,11 @@ else device=iPhone fi - buildid=$(curl -sL https://api.ipsw.me/v4/ipsw/$version | "$dir"/jq --arg device "$device" '[.[] | select(.identifier | startswith($device)) | .buildid][0]' --raw-output) + buildid=$(curl -sL https://api.ipsw.me/v4/ipsw/$version | "$dir"/jq '[.[] | select(.identifier | startswith("'$device'")) | .buildid][0]' --raw-output) if [ "$buildid" == "19B75" ]; then buildid=19B74 fi - ipswurl=$(curl -sL https://api.appledb.dev/ios/$device_os\;$buildid.json | "$dir"/jq -r --arg deviceid "$deviceid" '.devices[$deviceid].ipsw') + ipswurl=$(curl -sL https://api.appledb.dev/ios/$device_os\;$buildid.json | "$dir"/jq -r .devices\[\"$deviceid\"\].ipsw) fi if [ "$restorerootfs" = "1" ]; then