From 9a3f574af0348476c3ae20499663e38928e1398c Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Sat, 18 May 2024 17:04:56 +0800 Subject: [PATCH] Fix a bug with ipsw_prepare_bundle --- restore.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/restore.sh b/restore.sh index c3bab50..6789e44 100755 --- a/restore.sh +++ b/restore.sh @@ -2478,11 +2478,9 @@ ipsw_prepare_bundle() { ipsw_prepare_config false false fi local FirmwareBundle2="../resources/firmware/FirmwareBundles/Down_${device_type}_${vers}_${build}.bundle" - if [[ $device_target_powder == 1 && $device_target_vers == "4.3"* ]]; then + if [[ $ipsw_prepare_usepowder == 1 ]]; then FirmwareBundle2= - elif [[ $device_target_powder == 1 || $device_target_other == 1 ]] && [[ $device_proc != 4 ]]; then - FirmwareBundle2= - elif [[ -d $FirmwareBundle2 && $ipsw_prepare_usepowder != 1 ]]; then + elif [[ -d $FirmwareBundle2 ]]; then FirmwareBundle+="Down_" fi FirmwareBundle+="${device_type}_${vers}_${build}.bundle"