mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-03 15:00:34 +01: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
|
if [ ! "$ipsw" = "" ]; then
|
||||||
ipswurl=$ipsw
|
ipswurl=$ipsw
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
# Have the user put the device into DFU
|
# Have the user put the device into DFU
|
||||||
|
|||||||
Reference in new issue
Block a user