From e10afc8e757fb914e632e9c40fc6e589e6d47580 Mon Sep 17 00:00:00 2001 From: Austin English Date: Sat, 17 Nov 2018 05:18:18 -0600 Subject: sh/functions.sh.in: return a different value for invalid input in yesno() --- sh/functions.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/functions.sh.in') 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 } -- cgit v1.2.3