Skip to content

Commit 7661bd1

Browse files
committed
allow blank input on device_enter_build
previously was allowed, but since the better checks it was removed. this re-allows it
1 parent 52f5b37 commit 7661bd1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

restore.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9661,6 +9661,9 @@ device_enter_build() {
96619661
device_rd_build=
96629662
read -p "$(input 'Enter build version (eg. 10B329): ')" device_rd_build
96639663

9664+
if [[ -z $device_rd_build ]]; then
9665+
return
9666+
fi
96649667
local last_char=$(echo "$device_rd_build" | rev | cut -c1)
96659668
device_rd_build=$(echo "$device_rd_build" | tr '[:lower:]' '[:upper:]') # to uppercase
96669669
# If last char was a lowercase letter, make it lowercase again
@@ -9777,12 +9780,14 @@ device_enter_ramdisk() {
97779780
fi
97789781
fi
97799782
elif (( device_proc >= 5 )) && [[ $device_vers == "9"* || $device_vers == "10"* ]]; then
9783+
log "Device is on iOS 9+, using 9.0.2 (13A452) ramdisk"
97809784
device_rd_build="13A452"
97819785
elif (( device_proc >= 5 )) && (( device_det <= 8 )) && [[ $device_mode == "Normal" ]]; then
97829786
:
97839787
elif (( device_proc >= 5 )) && [[ -z $device_rd_build ]]; then
9784-
print "* To mount /var (/mnt2) for iOS 9-10, I recommend using 9.0.2 (13A452)."
9785-
print "* If not sure, just press Enter/Return. This will select the default version."
9788+
print "* To mount /var (/mnt2) for iOS 9-10, I recommend using version 9.0.2 (13A452)."
9789+
print "* Do not use iOS 9+ ramdisks if your device is on iOS 8 or lower, and vice versa."
9790+
print "* If not sure, just leave it blank and press Enter/Return. This will select the default version."
97869791
device_enter_build
97879792
fi
97889793

0 commit comments

Comments
 (0)