summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-07-29 23:18:43 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-07-29 23:18:43 +0200
commite558f9170096e2e397f18d13b75d8facf02e10eb (patch)
tree3f9f1761de2bcbbd6f6955e7ff1e656d4fe325b2 /src/core/libs/lib-ui.sh
parent42afcc1aabf26d6e9f3ae231082014698f50154d (diff)
fix some invalid show_warning invocations
Diffstat (limited to 'src/core/libs/lib-ui.sh')
-rw-r--r--src/core/libs/lib-ui.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index c02b994..113e66d 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -358,14 +358,14 @@ _dia_ask_number ()
ANSWER_NUMBER=`cat $ANSWER`
if [[ $ANSWER_NUMBER = *[^0-9]* ]] #TODO: handle exit state
then
- show_warning "$ANSWER_NUMBER is not a number! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is not a number! try again."
else
if [ -n "$3" -a $3 != '0' -a $ANSWER_NUMBER -gt $3 ]
then
- show_warning "$ANSWER_NUMBER is bigger then the maximum,$3! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is bigger then the maximum,$3! try again."
elif [ -n "$2" -a $ANSWER_NUMBER -lt $2 ]
then
- show_warning "$ANSWER_NUMBER is smaller then the minimum,$2! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is smaller then the minimum,$2! try again."
else
break
fi
@@ -514,14 +514,14 @@ _cli_ask_number ()
read ANSWER_NUMBER
if [[ $ANSWER_NUMBER = *[^0-9]* ]]
then
- show_warning "$ANSWER_NUMBER is not a number! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is not a number! try again."
else
if [ -n "$3" -a $3 != '0' -a $ANSWER_NUMBER -gt $3 ]
then
- show_warning "$ANSWER_NUMBER is bigger then the maximum,$3! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is bigger then the maximum,$3! try again."
elif [ -n "$2" -a $ANSWER_NUMBER -lt $2 ]
then
- show_warning "$ANSWER_NUMBER is smaller then the minimum,$2! try again."
+ show_warning 'Invalid number input' "$ANSWER_NUMBER is smaller then the minimum,$2! try again."
else
break
fi