From 193841034299fec8f21ec50c1f3a1c8e00602f6d Mon Sep 17 00:00:00 2001 From: AdityaK Date: Wed, 1 May 2024 13:51:25 -0700 Subject: [PATCH] IsEnvTrue and IsEnvFalse should take `True` and `False` as valid values respectively. Change-Id: Ibca5800c0846a45e3811db76fb5ad46b8a7eb1c1 --- android/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/config.go b/android/config.go index 75d135fc0..e0eacc3fd 100644 --- a/android/config.go +++ b/android/config.go @@ -813,12 +813,12 @@ func (c *config) GetenvWithDefault(key string, defaultValue string) string { } func (c *config) IsEnvTrue(key string) bool { - value := c.Getenv(key) + value := strings.ToLower(c.Getenv(key)) return value == "1" || value == "y" || value == "yes" || value == "on" || value == "true" } func (c *config) IsEnvFalse(key string) bool { - value := c.Getenv(key) + value := strings.ToLower(c.Getenv(key)) return value == "0" || value == "n" || value == "no" || value == "off" || value == "false" }