diff --git a/internal/shell/terminal.go b/internal/shell/terminal.go index 423bb736..6fb1ce7f 100644 --- a/internal/shell/terminal.go +++ b/internal/shell/terminal.go @@ -78,8 +78,8 @@ func (t *Terminal) Start(execCmd []string, getOutput bool, wait bool, callback f t.output = nil if getOutput { t.output = bytes.NewBuffer([]byte{}) + cmd.Stdout = t.output } - cmd.Stdout = t.output Term, _, err := terminal.Start(&t.State, cmd) if err != nil { return err