From 630b3229ee81e520378b37338cf1c34a21442262 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Fri, 8 Sep 2023 23:27:39 -0700 Subject: [PATCH] Fix term output capturing Fixes #2912 --- internal/shell/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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