summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-09 09:56:33 -0600
committerJeff Carr <[email protected]>2024-01-09 09:56:33 -0600
commit0d01d8276659a0ed56827f23e41fc0b0a7304f83 (patch)
treef75f1d951415f632b0fc651357a293b2a32c573a /unix.go
parent1f52d3083efb7768b8d7e21c7b9761c029b62584 (diff)
gets jcarr,devel and master branch info
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/unix.go b/unix.go
index 94a722f..cbf6b28 100644
--- a/unix.go
+++ b/unix.go
@@ -32,9 +32,13 @@ func run(path string, thing string, cmdline string) string {
return ""
}
+ tmp := string(output)
+
+ tmp = strings.TrimSpace(tmp)
+
// Print the output
- log.Info(string(output))
- return string(output)
+ log.Info("run()", path, thing, cmdline, "=", tmp)
+ return tmp
}
func listFiles(directory string) []string {