From 127f0d88be0c338616d2b39e2132a2bb96d699bf Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Fri, 12 Mar 2021 14:32:06 +0800 Subject: [PATCH] Fix verifying IPSW --- restore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 2e92863..6243370 100755 --- a/restore.sh +++ b/restore.sh @@ -439,7 +439,8 @@ function Downgrade { curl -L $(cat $Firmware/$BuildVer/url) -o tmp/$IPSW.ipsw mv tmp/$IPSW.ipsw . fi - if [ ! -e $IPSWCustom.ipsw ]; then + [[ $Jailbreak == 1 ]] && [ -e $IPSWCustom.ipsw ] && Verify=0 + if [[ $Verify != 0 ]]; then Log "Verifying IPSW..." IPSWSHA1=$(cat $Firmware/$BuildVer/sha1sum) IPSWSHA1L=$(shasum $IPSW.ipsw | awk '{print $1}')