From a9c2ba5c89655e0d770a49cb63babb9181f05e15 Mon Sep 17 00:00:00 2001 From: fcd <1352288+femnad@users.noreply.github.com> Date: Wed, 13 Dec 2023 02:05:09 +0000 Subject: [PATCH] fix: hasOutput shouldn't care if the cmd has errored --- precheck/fact.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/precheck/fact.go b/precheck/fact.go index 74778fd..efe7f3c 100644 --- a/precheck/fact.go +++ b/precheck/fact.go @@ -67,7 +67,7 @@ func hasEnv(env string) (bool, error) { func hasOutput(cmd string) (bool, error) { out, err := marecmd.Run(marecmd.Input{Command: cmd}) if err != nil { - return false, err + return false, nil } return len(strings.TrimSpace(out.Stdout)) > 0, nil