diff options
| author | Jeff Carr <[email protected]> | 2024-01-07 07:09:59 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-07 07:09:59 -0600 |
| commit | a811226c53f41b108be5974156ea6459a9764c4d (patch) | |
| tree | dacd4f6efbb9e43de570eacd68492442fea496eb /linuxstatus/unix.go | |
| parent | b1c7bb8a31c4e02d89a437063516e474e68fab4d (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.go | 4 |
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) |
