From b6252ba4dbb163b237d084e5525deff9f3b1a774 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Sat, 21 Aug 2021 16:53:54 +0800 Subject: [PATCH] Output log SHA1sum on verifying IPSW --- resources/downgrade.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/downgrade.sh b/resources/downgrade.sh index 450897b..3aff255 100755 --- a/resources/downgrade.sh +++ b/resources/downgrade.sh @@ -142,7 +142,9 @@ Downgrade() { if [[ $Verify == 1 ]]; then Log "Verifying IPSW..." IPSWSHA1=$(cat $Firmware/$BuildVer/sha1sum) + Log "Expected SHA1sum: $IPSWSHA1" IPSWSHA1L=$(shasum $IPSW.ipsw | awk '{print $1}') + Log "Actual SHA1sum: $IPSWSHA1L" if [[ $IPSWSHA1L != $IPSWSHA1 ]]; then Error "Verifying IPSW failed. Your IPSW may be corrupted or incomplete." \ "Delete/replace the IPSW and run the script again"