summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--human.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/human.go b/human.go
index d202673..5a459b4 100644
--- a/human.go
+++ b/human.go
@@ -58,12 +58,13 @@ func checkCmdSimple(cmd string) bool {
return true
}
+// never output anythhing to stdout or stderr here
func CheckCmd(cmd string) (string, error) {
path, err := exec.LookPath(cmd)
if err != nil {
- fmt.Printf("\n%s is not in the PATH\n", cmd)
+ // fmt.Printf("\n%s is not in the PATH\n", cmd)
} else {
- fmt.Printf("%s is available at %s\n", cmd, path)
+ // fmt.Printf("%s is available at %s\n", cmd, path)
}
return path, err
}