summaryrefslogtreecommitdiff
path: root/linuxstatus/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-07 07:09:59 -0600
committerJeff Carr <[email protected]>2024-01-07 07:09:59 -0600
commit807b3be94f4be4b1aeea48695474aca1bfef4ab2 (patch)
tree5af8e1b94ebbe5bb7148848aa926ab74f1ab2793 /linuxstatus/unix.go
parent930bdc941b1181460f4c38dc708dc53d583ab5d3 (diff)
window titles update to correct values
Signed-off-by: Jeff Carr <[email protected]>
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)