1
0
forked from ALHP/ALHP.GO

use yaml bool

This commit is contained in:
2021-11-21 19:35:29 +01:00
parent fe822b4765
commit 2ca1b37eab

View File

@@ -78,7 +78,7 @@ type Conf struct {
Build struct {
Worker int
Makej int
Checks string
Checks bool
}
Logging struct {
Level string
@@ -692,7 +692,7 @@ func setupMakepkg(march string) error {
makepkgStr := string(t)
makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "")
if strings.ToLower(conf.Build.Checks) != "true" {
if conf.Build.Checks {
makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ")
}
makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ")