Update downr1n.sh

This commit is contained in:
ささ 2023-09-01 19:43:07 +09:00 committed by GitHub
parent 01de63a337
commit ec6216c20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,7 @@ if [ ! -d "ramdisk/" ]; then
fi
if [ ! -e ipsw/*.ipsw ]; then
echo "[*] Downloading ipsw"
"$dir"/aria2c -x16 -s16 -j16 "$(curl -sL "https://api.ipsw.me/v4/device/$deviceid?type=ipsw" | "$dir"/jq '.firmwares | .[] | select(.version=="'$1'")' | "$dir"/jq -s '.[0] | .url' --raw-output)"
mv *.ipsw ipsw
fi