mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
jq arg broke stuff
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user