summaryrefslogtreecommitdiff
path: root/linuxstatus/unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'linuxstatus/unix.go')
-rw-r--r--linuxstatus/unix.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxstatus/unix.go b/linuxstatus/unix.go
index 99509c0..88f64ec 100644
--- a/linuxstatus/unix.go
+++ b/linuxstatus/unix.go
@@ -13,7 +13,6 @@ import (
"strings"
"go.wit.com/log"
- "go.wit.com/shell"
)
func CheckSuperuser() bool {
@@ -89,7 +88,8 @@ func run(s string) string {
return ""
}
- tmp := shell.Chomp(out.String())
+ // Trim leading and trailing whitespace from each line
+ tmp := strings.TrimSpace(out.String())
// Output the results
log.Info("Command Output:", tmp)