From c8827838b25b3ad41305ee217a2bf62cda55954a Mon Sep 17 00:00:00 2001 From: Jacob Keller Date: Tue, 27 May 2014 14:50:55 -0700 Subject: [PATCH] config_check_boolean: add _ to yes and no markers The config_check_boolean function had a bug, since no and yes were not properly prefixed. Signed-off-by: Jacob Keller --- email/aiaiai-email-sh-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email/aiaiai-email-sh-functions b/email/aiaiai-email-sh-functions index 5656b53..d19e55f 100644 --- a/email/aiaiai-email-sh-functions +++ b/email/aiaiai-email-sh-functions @@ -181,10 +181,10 @@ config_check_boolean() # Prefixing with _ makes it easier to catch empty string as false case "_$value" in - _|_0|_false|no) + _|_0|_false|_no) printf %s "0" ;; - _1|_true|yes) + _1|_true|_yes) printf %s "1" ;; *) -- 2.49.0