Skip to content

Commit

Permalink
fix: hasOutput shouldn't care if the cmd has errored
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Dec 13, 2023
1 parent 2df4c5b commit a9c2ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precheck/fact.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9c2ba5

Please sign in to comment.