fix ipsw?
This commit is contained in:
parent
dd311a7962
commit
9de56c3eaa
1 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,8 @@ echo "[*] Command ran:`if [ $EUID = 0 ]; then echo " sudo"; fi` ./downr1n.sh $@"
|
|||
|
||||
# =========
|
||||
# Variables
|
||||
# =========
|
||||
# =========
|
||||
ipsw="ipsw/*.ipsw" # put your ipsw
|
||||
version="2.0"
|
||||
os=$(uname)
|
||||
dir="$(pwd)/binaries/$os"
|
||||
|
|
@ -642,6 +643,7 @@ if [ ! -e "ipsw/*.ipsw" ]; then
|
|||
# downloader by @sasa
|
||||
echo "[*] Downloading ipsw, it may take few minutes."
|
||||
curl -Lo ipsw/$deviceid-$version.ipsw "$ipswurl" "-#"
|
||||
ipsw="ipsw/*.ipsw"
|
||||
fi
|
||||
|
||||
|
||||
|
|
@ -654,8 +656,6 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue