Update downr1n.sh
This commit is contained in:
parent
aa3fe259cf
commit
bc03c82e1b
1 changed files with 7 additions and 9 deletions
16
downr1n.sh
16
downr1n.sh
|
|
@ -650,16 +650,12 @@ fi
|
||||||
# extract ipsw
|
# 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/
|
cd ipsw/
|
||||||
ipsw_files=(*.ipsw)
|
ipsw_files=(*.ipsw)
|
||||||
if [[ ${#ipsw_files[@]} -gt 1 ]]; then
|
if [[ ${#ipsw_files[@]} -gt 1 ]]; then
|
||||||
|
|
@ -669,6 +665,8 @@ if [[ ${#ipsw_files[@]} -gt 1 ]]; then
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
ipsw=$(ls ipsw/*.ipsw) # put your ipsw
|
||||||
|
|
||||||
if [ -a $ipsw ] || [ "${ipsw: -5}" == ".ipsw" ]; then
|
if [ -a $ipsw ] || [ "${ipsw: -5}" == ".ipsw" ]; then
|
||||||
echo "[*] Continuing..."
|
echo "[*] Continuing..."
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue