Fix a bug with ipsw_prepare_bundle

This commit is contained in:
LukeZGD 2024-05-18 17:04:56 +08:00
parent d1b1fe637f
commit 9a3f574af0

View File

@ -2478,11 +2478,9 @@ ipsw_prepare_bundle() {
ipsw_prepare_config false false ipsw_prepare_config false false
fi fi
local FirmwareBundle2="../resources/firmware/FirmwareBundles/Down_${device_type}_${vers}_${build}.bundle" 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= FirmwareBundle2=
elif [[ $device_target_powder == 1 || $device_target_other == 1 ]] && [[ $device_proc != 4 ]]; then elif [[ -d $FirmwareBundle2 ]]; then
FirmwareBundle2=
elif [[ -d $FirmwareBundle2 && $ipsw_prepare_usepowder != 1 ]]; then
FirmwareBundle+="Down_" FirmwareBundle+="Down_"
fi fi
FirmwareBundle+="${device_type}_${vers}_${build}.bundle" FirmwareBundle+="${device_type}_${vers}_${build}.bundle"