From a811226c53f41b108be5974156ea6459a9764c4d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 7 Jan 2024 07:09:59 -0600 Subject: window titles update to correct values Signed-off-by: Jeff Carr --- linuxstatus/unix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linuxstatus/unix.go') 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) -- cgit v1.2.3