Skip to content

Commit

Permalink
Fix a bug with ipsw_prepare_bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed May 18, 2024
1 parent d1b1fe6 commit 9a3f574
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
FirmwareBundle2=
elif [[ $device_target_powder == 1 || $device_target_other == 1 ]] && [[ $device_proc != 4 ]]; then
if [[ $ipsw_prepare_usepowder == 1 ]]; then
FirmwareBundle2=
elif [[ -d $FirmwareBundle2 && $ipsw_prepare_usepowder != 1 ]]; then
elif [[ -d $FirmwareBundle2 ]]; then
FirmwareBundle+="Down_"
fi
FirmwareBundle+="${device_type}_${vers}_${build}.bundle"
Expand Down

0 comments on commit 9a3f574

Please sign in to comment.