mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-11 15:59:08 +01:00
Fix verifying IPSW on Windows
This commit is contained in:
parent
2b0e8fceab
commit
6fc6a92a91
@ -1385,7 +1385,7 @@ ipsw_verify() {
|
||||
if [[ -z $IPSWSHA1 ]]; then
|
||||
IPSWSHA1="$(curl https://api.ipsw.me/v2.1/$device_type/$build_id/sha1sum)"
|
||||
fi
|
||||
local IPSWSHA1L=$($sha1sum "$ipsw_dl.ipsw" | awk '{print $1}')
|
||||
local IPSWSHA1L=$($sha1sum "${ipsw_dl//\\//}.ipsw" | awk '{print $1}')
|
||||
if [[ $IPSWSHA1L != "$IPSWSHA1" ]]; then
|
||||
if [[ -z $3 ]]; then
|
||||
log "SHA1sum mismatch. Expected $IPSWSHA1, got $IPSWSHA1L"
|
||||
|
Loading…
x
Reference in New Issue
Block a user