1
0

Trim last added newline

This commit is contained in:
dump_stack() 2023-04-06 20:45:20 +00:00
parent a4c83c1637
commit c0dd0ae07b
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -384,6 +384,7 @@ func (q System) Command(user, cmd string) (output string, err error) {
output += m + "\n" output += m + "\n"
flog.Trace().Str("stdout", m).Msg("") flog.Trace().Str("stdout", m).Msg("")
} }
output = strings.TrimSuffix(output, "\n")
}() }()
err = session.Wait() err = session.Wait()