From 7b61cf60fe7c8946c581dcf3107efb902b001620 Mon Sep 17 00:00:00 2001 From: Philippe ALEXANDRE <philippe.alexandre@orange.com> Date: Tue, 15 May 2018 11:52:49 +0200 Subject: [PATCH] Add strings.ToLower ... --- check/test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/check/test.go b/check/test.go index 4e1507c..2470721 100644 --- a/check/test.go +++ b/check/test.go @@ -80,6 +80,7 @@ func (t *testItem) execute(s string) (result bool) { switch t.Compare.Op { case "eq": + value := strings.ToLower(flagVal) // Do case insensitive comparaison for booleans ... if value == "false" || value == "true" { result = value == t.Compare.Value @@ -88,6 +89,7 @@ func (t *testItem) execute(s string) (result bool) { } case "noteq": + value := strings.ToLower(flagVal) // Do case insensitive comparaison for booleans ... if value == "false" || value == "true" { result = !(value == t.Compare.Value) -- GitLab