mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
Output log SHA1sum on verifying IPSW
This commit is contained in:
parent
091f866270
commit
b6252ba4db
@ -142,7 +142,9 @@ Downgrade() {
|
|||||||
if [[ $Verify == 1 ]]; then
|
if [[ $Verify == 1 ]]; then
|
||||||
Log "Verifying IPSW..."
|
Log "Verifying IPSW..."
|
||||||
IPSWSHA1=$(cat $Firmware/$BuildVer/sha1sum)
|
IPSWSHA1=$(cat $Firmware/$BuildVer/sha1sum)
|
||||||
|
Log "Expected SHA1sum: $IPSWSHA1"
|
||||||
IPSWSHA1L=$(shasum $IPSW.ipsw | awk '{print $1}')
|
IPSWSHA1L=$(shasum $IPSW.ipsw | awk '{print $1}')
|
||||||
|
Log "Actual SHA1sum: $IPSWSHA1L"
|
||||||
if [[ $IPSWSHA1L != $IPSWSHA1 ]]; then
|
if [[ $IPSWSHA1L != $IPSWSHA1 ]]; then
|
||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user