diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-09 18:58:29 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-09 18:58:29 +0100 |
commit | e85161045759c0931329900b062c1f64ceedfc85 (patch) | |
tree | 8a16438c52fc608183ab748100cb3dc1207a8ec9 /src/core | |
parent | d5ec4795f3211a47e8bea1569ba95c3f84c9b84d (diff) |
naughty return code bug
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/libs/lib-ui.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |