mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-24 19:19:48 +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
|
device=iPhone
|
||||||
fi
|
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
|
if [ "$buildid" == "19B75" ]; then
|
||||||
buildid=19B74
|
buildid=19B74
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
if [ "$restorerootfs" = "1" ]; then
|
if [ "$restorerootfs" = "1" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user