fix ipsw?

This commit is contained in:
Edwin Nuñez 2023-09-16 13:42:53 -04:00 committed by GitHub
parent dd311a7962
commit 9de56c3eaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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