diff options
author | Austin English <austinenglish@gmail.com> | 2018-11-17 05:18:18 -0600 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2018-11-18 13:22:59 -0500 |
commit | e10afc8e757fb914e632e9c40fc6e589e6d47580 (patch) | |
tree | 69e9056203d155e98ab200b625fb73d1f1b4ce0d /sh | |
parent | 0f704402a236d385e8b30083ccf9aca327c0a57e (diff) |
sh/functions.sh.in: return a different value for invalid input in yesno()
Diffstat (limited to 'sh')
-rw-r--r-- | sh/functions.sh.in | 2 |
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 } |