From eb21e6b25a7466f80c0874351f524314cfb3668a Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Wed, 16 Jun 2021 12:29:02 +0800 Subject: [PATCH] Fix a problem with jailbreak option --- resources/downgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/downgrade.sh b/resources/downgrade.sh index bddf460..0bfdacf 100755 --- a/resources/downgrade.sh +++ b/resources/downgrade.sh @@ -120,7 +120,7 @@ Downgrade() { if [[ $Jailbreak == 1 || $DeviceProc == 7 ]]; then [[ ! -e "$IPSWCustom.ipsw" ]] && Verify=1 - elif [[ -z $Jailbreak ]]; then + elif [[ $Jailbreak != 1 ]]; then Verify=1 fi @@ -132,7 +132,7 @@ Downgrade() { Error "Verifying IPSW failed. Your IPSW may be corrupted or incomplete." \ "Delete/replace the IPSW and run the script again" fi - elif [[ -e "$IPSWCustom.ipsw" ]]; then + elif [[ $Jailbreak == 1 && -e "$IPSWCustom.ipsw" ]]; then Log "Found existing Custom IPSW. Skipping verification." Log "Setting restore IPSW to: $IPSWCustom.ipsw" IPSWRestore=$IPSWCustom