]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
config_check_boolean: add _ to yes and no markers
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 27 May 2014 21:50:55 +0000 (14:50 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Wed, 18 Jun 2014 21:11:52 +0000 (14:11 -0700)
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>
email/aiaiai-email-sh-functions

index 5656b53b42829a623dce003a3974e021260ac654..d19e55f380326fb4ba4a98396a9fd8d0e8e108ed 100644 (file)
@@ -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"
                ;;
        *)