mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 07:11:01 +00:00
Return only stdout from command
docker-compose outputs warning messages to stderr
This commit is contained in:
parent
d9a94779f3
commit
5d5ca0d3c4
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ func (c *OSCommand) SetCommand(cmd func(string, ...string) *exec.Cmd) {
|
|||
func (c *OSCommand) RunCommandWithOutput(command string) (string, error) {
|
||||
cmd := c.ExecutableFromString(command)
|
||||
before := time.Now()
|
||||
output, err := sanitisedCommandOutput(cmd.CombinedOutput())
|
||||
output, err := sanitisedCommandOutput(cmd.Output())
|
||||
c.Log.Warn(fmt.Sprintf("'%s': %s", command, time.Since(before)))
|
||||
return output, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue