From 383a16d3358ab0b06a63960bf49bad22c558b128 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 8 Mar 2009 16:58:11 +0100 Subject: fix some return code incorrectness in interactive_configure_system --- src/core/libs/lib-ui-interactive.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/libs') diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index c013bb0..5442e1b 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -40,10 +40,10 @@ interactive_configure_system() "/etc/locale.gen" "Glibc Locales" \ "$var_MIRRORLIST" "Pacman Mirror List" \ "Root-Password" "Set the root password" \ - "Return" "Return to Main Menu" || FILE="Return" + "Done" "Return to Main Menu" || return 1 FILE=$ANSWER_OPTION - if [ "$FILE" = "Return" -o -z "$FILE" ]; then # exit + if [ "$FILE" = "Done" ]; then # exit break elif [ "$FILE" = "Root-Password" ]; then # non-file while true; do @@ -56,6 +56,7 @@ interactive_configure_system() # temporary backup files are not useful anymore past this point. find "${var_TARGET_DIR}/etc/" -name '*~' -delete &>/dev/null + return 0 } -- cgit v1.2.3-54-g00ecf