mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 10:39:48 +02:00
fix not being able to get iPSW url (#241)
This commit is contained in:
1 parent
f2a36e124e
commit
ec6cf3fd54
1 file changed
+7
-1
+7
-1
@@ -433,7 +433,13 @@ deviceid=$(_info recovery PRODUCT)
|
||||
if [ ! "$ipsw" = "" ]; then
|
||||
ipswurl=$ipsw
|
||||
else
|
||||
ipswurl=$(curl -sL "https://api.ipsw.me/v4/device/$deviceid?type=ipsw" | "$dir"/jq '.firmwares | .[] | select(.version=="'"$version"'") | .url' --raw-output)
|
||||
buildid=$(curl -sL https://api.ipsw.me/v4/ipsw/15.7.1 | jq '.[0] | .buildid' --raw-output)
|
||||
if [[ "$deviceid" == *"iPad"* ]]; then
|
||||
os=iPadOS
|
||||
else
|
||||
os=iOS
|
||||
fi
|
||||
ipswurl=$(curl -sL https://api.appledb.dev/ios/$os\;$buildid.json | jq -r .devices[\"$deviceid\"].ipsw)
|
||||
fi
|
||||
|
||||
# Have the user put the device into DFU
|
||||
|
||||
Reference in new issue
Block a user