An update

This commit is contained in:
LukeZGD 2023-04-13 11:37:15 +08:00
parent cc0ff26cf0
commit a1f5f52e24

View File

@ -2720,7 +2720,7 @@ menu_ipsw() {
fi fi
else else
# menu for ota versions # menu for ota/latest versions
menu_items+=("Download Target IPSW") menu_items+=("Download Target IPSW")
if [[ -n $ipsw_path ]]; then if [[ -n $ipsw_path ]]; then
print "* Selected IPSW: $ipsw_path.ipsw" print "* Selected IPSW: $ipsw_path.ipsw"
@ -2740,12 +2740,10 @@ menu_ipsw() {
done done
case $selected in case $selected in
"Start Restore" | "Create IPSW" ) "Start Restore" | "Create IPSW" )
if [[ $1 == "Other (use SHSH blobs)" ]]; then case $1 in
device_target_other=1 "Other (use SHSH blobs)" ) device_target_other=1;;
fi *"powdersn0w"* ) device_target_powder=1;;
if [[ $1 == *"powdersn0w"* ]]; then esac
device_target_powder=1
fi
;;& ;;&
"Start Restore" ) "Start Restore" )
@ -2805,11 +2803,10 @@ ipsw_custom_set() {
device_use_bb=0 device_use_bb=0
ipsw_custom+="B" ipsw_custom+="B"
fi fi
if [[ $ipsw_jailbreak_tool == "daibutsu" ]]; then case $ipsw_jailbreak_tool in
ipsw_custom+="D" "daibutsu" ) ipsw_custom+="D";;
elif [[ $ipsw_jailbreak_tool == "etasonjb" ]]; then "etasonjb" ) ipsw_custom+="E";;
ipsw_custom+="E" esac
fi
if [[ $ipsw_verbose == 1 ]]; then if [[ $ipsw_verbose == 1 ]]; then
ipsw_custom+="V" ipsw_custom+="V"
fi fi