From 800ab17d557b83043e2d39497353f4cfe100d44f Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Fri, 24 Jul 2020 11:00:32 +0800 Subject: [PATCH] Update restore.sh --- restore.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/restore.sh b/restore.sh index 46493f2..896b3d5 100755 --- a/restore.sh +++ b/restore.sh @@ -313,7 +313,7 @@ function CheckM8 { Mode='Downgrade' SelectVersion else - Error "Entering pwnDFU failed. Please run the script again" + Error "Entering pwnDFU failed. Please run the script again" '$ ./restore.sh Downgrade' fi } @@ -508,11 +508,6 @@ function InstallDependencies { exit } -function Verify { - Log "Verifying $1..." - [[ $(sha1sum $1 | awk '{print $1}') != $2 ]] && Error "Verifying $1 failed. Please run the script again" -} - function Compile { git clone --depth 1 https://github.com/$1/$2.git cd $2 @@ -539,6 +534,11 @@ function SaveExternal { fi } +function Verify { + Log "Verifying $1..." + [[ $(sha1sum $1 | awk '{print $1}') != $2 ]] && Error "Verifying $1 failed. Please run the script again" '$ ./restore.sh InstallDependencies' +} + function BasebandDetect { Firmware=resources/firmware/$ProductType BasebandURL=$(cat $Firmware/13G37/url 2>/dev/null) # iOS 9.3.6