From 2ca1b37eabd935d5e1c9b521a43031eadba8344c Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 21 Nov 2021 19:35:29 +0100 Subject: [PATCH] use yaml bool --- utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.go b/utils.go index 658a36a..68a4db5 100644 --- a/utils.go +++ b/utils.go @@ -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 ")