Trim last added newline
This commit is contained in:
parent
a4c83c1637
commit
c0dd0ae07b
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user