From 1eaaab59f08b80324db3fd3f8cf001c11113affd Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Wed, 1 Sep 2021 08:11:07 +0800 Subject: [PATCH] Fix "Other" downgrades --- resources/downgrade.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/downgrade.sh b/resources/downgrade.sh index e248d22..0faa4a8 100755 --- a/resources/downgrade.sh +++ b/resources/downgrade.sh @@ -169,19 +169,21 @@ Downgrade() { mkdir -p saved/$ProductType 2>/dev/null unzip -o -j $IPSW.ipsw Firmware/dfu/$iBSS.dfu -d saved/$ProductType fi + else + IPSWCustom=0 fi [[ $DeviceState == "Normal" ]] && kDFU - + if [[ $Jailbreak == 1 || $IPSWRestore == $IPSWCustom || $IPSWCustomW == 1 ]]; then [[ $Jailbreak == 1 || $IPSWCustomW == 1 ]] && IPSW32 - IPSWExtract=$IPSWCustom + IPSWExtract="$IPSWCustom" else - IPSWExtract=$IPSW + IPSWExtract="$IPSW" fi - + Log "Extracting IPSW: $IPSWExtract.ipsw" - unzip -q $IPSWExtract.ipsw -d $IPSWExtract/ + unzip -q "$IPSWExtract.ipsw" -d "$IPSWExtract"/ if [[ $DeviceProc == 7 ]]; then IPSW64