From e85161045759c0931329900b062c1f64ceedfc85 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Tue, 9 Dec 2008 18:58:29 +0100 Subject: naughty return code bug --- src/core/libs/lib-ui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/libs/lib-ui.sh') diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh index e4d3f4b..cb8618a 100644 --- a/src/core/libs/lib-ui.sh +++ b/src/core/libs/lib-ui.sh @@ -178,7 +178,7 @@ ask_datetime () # $1 question # $2 lower limit (optional) # $3 upper limit (optional) -# TODO: implement a default number +# $4 default : TODO implement in cli # echo's the number the user said # returns 1 if the user cancelled or did not enter a numeric, 0 otherwise ask_number () @@ -329,7 +329,7 @@ _dia_ask_number () echo "$ANSWER_NUMBER" debug "_dia_ask_number: user entered: $ANSWER_NUMBER" [ -z "$ANSWER_NUMBER" ] && return 1 - return $? + return $ret } -- cgit v1.2.3-54-g00ecf