Fix a problem with jailbreak option

This commit is contained in:
LukeZGD 2021-06-16 12:29:02 +08:00
parent 1931281d2f
commit eb21e6b25a

View File

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