ignore case in option

This commit is contained in:
2021-11-21 19:31:41 +01:00
parent ca7cbe72ee
commit fe822b4765

View File

@@ -692,7 +692,7 @@ func setupMakepkg(march string) error {
makepkgStr := string(t) makepkgStr := string(t)
makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "") 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, " check ", " !check ")
} }
makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ") makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ")