From fdb8afd32c79edfc0cf3738a8811ea62a3ae54f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=95=E3=81=95?= <91324887+sasa8810@users.noreply.github.com> Date: Fri, 1 Sep 2023 19:59:45 +0900 Subject: [PATCH] Update downr1n.sh --- downr1n.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/downr1n.sh b/downr1n.sh index 3912c4a..2db51f4 100755 --- a/downr1n.sh +++ b/downr1n.sh @@ -455,12 +455,6 @@ if [ ! -e "$dir"/futurerestore ]; then mv futurerestore "$dir"/ rm -rf futurerestore-* fi - -if [ ! -e ipsw/*.ipsw ]; then - echo "[*] Downloading ipsw" - 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 ipsw=$(ls ipsw/*.ipsw) # put your ipsw @@ -565,6 +559,11 @@ fi ipswurl=$(curl -sL "https://api.ipsw.me/v4/device/$deviceid?type=ipsw" | "$dir"/jq '.firmwares | .[] | select(.version=="'$version'")' | "$dir"/jq -s '.[0] | .url' --raw-output) +if [ ! -e ipsw/*.ipsw ]; then + echo "[*] Downloading ipsw, it may take few minutes." + aria2c -x16 -s16 -j16 "$ipswurl" + mv *.ipsw ipsw +fi # Have the user put the device into DFU if [ "$(get_device_mode)" != "dfu" ]; then