mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 03:58:01 +00:00
Add newline on non-ttl output (#3967)
Output is formatted with newlines in mind, so without this those get lost and things get funky due to multiple outputs running together.
This commit is contained in:
@@ -23,7 +23,9 @@ func (u *VaultUI) Output(m string) {
|
|||||||
if u.isTerminal {
|
if u.isTerminal {
|
||||||
u.Ui.Output(m)
|
u.Ui.Output(m)
|
||||||
} else {
|
} else {
|
||||||
getWriterFromUI(u.Ui).Write([]byte(m))
|
writer := getWriterFromUI(u.Ui)
|
||||||
|
writer.Write([]byte(m))
|
||||||
|
writer.Write([]byte("\n"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user