diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2014-05-27 14:50:55 -0700 |
---|---|---|
committer | Jacob Keller <jacob.e.keller@intel.com> | 2014-06-18 14:11:52 -0700 |
commit | c8827838b25b3ad41305ee217a2bf62cda55954a (patch) | |
tree | 47a1f87a322e1526a79e3181abafd4212faf1cd2 | |
parent | bef5029f9b24d0aedd7c4ece832e03b2367cbfa8 (diff) | |
download | aiaiai-c8827838b25b3ad41305ee217a2bf62cda55954a.tar.gz |
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 <jacob.e.keller@intel.com>
-rw-r--r-- | email/aiaiai-email-sh-functions | 4 |
1 files 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" ;; *) |