From fe822b4765618ce405db69b494c44cab0aec2df5 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 21 Nov 2021 19:31:41 +0100 Subject: [PATCH] ignore case in option --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.go b/utils.go index 3083c00..658a36a 100644 --- a/utils.go +++ b/utils.go @@ -692,7 +692,7 @@ func setupMakepkg(march string) error { makepkgStr := string(t) makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "") - if conf.Build.Checks != "true" { + if strings.ToLower(conf.Build.Checks) != "true" { makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ") } makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ")