mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Fix a problem with jailbreak option
This commit is contained in:
parent
1931281d2f
commit
eb21e6b25a
@ -120,7 +120,7 @@ Downgrade() {
|
|||||||
|
|
||||||
if [[ $Jailbreak == 1 || $DeviceProc == 7 ]]; then
|
if [[ $Jailbreak == 1 || $DeviceProc == 7 ]]; then
|
||||||
[[ ! -e "$IPSWCustom.ipsw" ]] && Verify=1
|
[[ ! -e "$IPSWCustom.ipsw" ]] && Verify=1
|
||||||
elif [[ -z $Jailbreak ]]; then
|
elif [[ $Jailbreak != 1 ]]; then
|
||||||
Verify=1
|
Verify=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ Downgrade() {
|
|||||||
Error "Verifying IPSW failed. Your IPSW may be corrupted or incomplete." \
|
Error "Verifying IPSW failed. Your IPSW may be corrupted or incomplete." \
|
||||||
"Delete/replace the IPSW and run the script again"
|
"Delete/replace the IPSW and run the script again"
|
||||||
fi
|
fi
|
||||||
elif [[ -e "$IPSWCustom.ipsw" ]]; then
|
elif [[ $Jailbreak == 1 && -e "$IPSWCustom.ipsw" ]]; then
|
||||||
Log "Found existing Custom IPSW. Skipping verification."
|
Log "Found existing Custom IPSW. Skipping verification."
|
||||||
Log "Setting restore IPSW to: $IPSWCustom.ipsw"
|
Log "Setting restore IPSW to: $IPSWCustom.ipsw"
|
||||||
IPSWRestore=$IPSWCustom
|
IPSWRestore=$IPSWCustom
|
||||||
|
Loading…
Reference in New Issue
Block a user