Update downr1n.sh

This commit is contained in:
ささ 2023-09-15 19:26:14 +09:00 committed by GitHub
parent aa3fe259cf
commit bc03c82e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -650,15 +650,11 @@ fi
# extract ipsw
# =========
# sasa please update your downloader to use wget
#if [ ! -e "ipsw/*.ipsw" ]; then
# echo "[*] Downloading ipsw, it may take few minutes."
# aria2c -x16 -s16 -j16 "$ipswurl"
# mv *.ipsw ipsw
#fi
ipsw=$(ls ipsw/*.ipsw) # put your ipsw
if [ ! -e "ipsw/*.ipsw" ]; then
echo "[*] Downloading ipsw, it may take few minutes."
curl -Lo ipsw/$deviceid-$version.ipsw "$ipswurl" "-#"
fi
cd ipsw/
ipsw_files=(*.ipsw)
@ -669,6 +665,8 @@ if [[ ${#ipsw_files[@]} -gt 1 ]]; then
fi
cd ..
ipsw=$(ls ipsw/*.ipsw) # put your ipsw
if [ -a $ipsw ] || [ "${ipsw: -5}" == ".ipsw" ]; then
echo "[*] Continuing..."
else