summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui-interactive.sh
diff options
context:
space:
mode:
authorMatthias Dienstbier <mdienstbier@googlemail.com>2009-07-21 10:42:02 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-07-21 10:42:02 +0200
commitf8668b64c025dd2899d4b98f3a369b716dd30aa9 (patch)
treed31d4f85525de927a8b26a3c83db4af624f5bff2 /src/core/libs/lib-ui-interactive.sh
parent77f5f91892fb9cc98f321206230f321e6a057727 (diff)
fix the dead cancel buttons of some menus
Diffstat (limited to 'src/core/libs/lib-ui-interactive.sh')
-rw-r--r--src/core/libs/lib-ui-interactive.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index 63e2a87..712f1ac 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -123,7 +123,7 @@ interactive_time () {
type ntpdate &>/dev/null && EXTRA=('ntp' 'Set time and date using ntp')
ask_option $default "Date/time configuration" "According to your settings and your hardwareclock, the date should now be $current. If this is incorrect, you can correct this now" required \
- "${EXTRA[@]}" "manual" "Set time and date manually" "return" "Looks good. back to main menu"
+ "${EXTRA[@]}" "manual" "Set time and date manually" "return" "Looks good. back to main menu" || return 1
if [ "$ANSWER_OPTION" = ntp ]
then
if ntpdate pool.ntp.org >/dev/null
@@ -1038,7 +1038,7 @@ select_source_extras_menu ()
ask_option no "FTP Installation" "Make sure the network is ok and you've selected a mirror before continuing the installer" required \
"1" "$worker_runtime_network_title" \
"2" "$worker_select_mirror_title" \
- "3" "Return to Main Menu"
+ "3" "Return to Main Menu" || return 1
[ "$ANSWER_OPTION" = 1 ] && execute worker runtime_network
[ "$ANSWER_OPTION" = 2 ] && execute worker select_mirror
[ "$ANSWER_OPTION" = 3 ] && break