aboutsummaryrefslogtreecommitdiff
path: root/sh/functions.sh.in
diff options
context:
space:
mode:
authorAustin English <austinenglish@gmail.com>2018-11-17 05:18:18 -0600
committerMike Frysinger <vapier@gmail.com>2018-11-18 13:22:59 -0500
commite10afc8e757fb914e632e9c40fc6e589e6d47580 (patch)
tree69e9056203d155e98ab200b625fb73d1f1b4ce0d /sh/functions.sh.in
parent0f704402a236d385e8b30083ccf9aca327c0a57e (diff)
sh/functions.sh.in: return a different value for invalid input in yesno()
Diffstat (limited to 'sh/functions.sh.in')
-rw-r--r--sh/functions.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/functions.sh.in b/sh/functions.sh.in
index 9283ec03..bc2203c9 100644
--- a/sh/functions.sh.in
+++ b/sh/functions.sh.in
@@ -46,7 +46,7 @@ yesno()
case "$value" in
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) return 0;;
[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) return 1;;
- *) vewarn "\$$1 is not set properly"; return 1;;
+ *) vewarn "\$$1 is not set properly"; return 2;;
esac
}