Skip to content

Commit

Permalink
fix: pass actual stdout's fd to command
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Oct 31, 2022
1 parent 4f83c62 commit 741f2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (p *Program) exec(c ExecCommand, fn ExecCallback) {
}

c.SetStdin(p.input)
c.SetStdout(p.output)
c.SetStdout(p.output.TTY())
c.SetStderr(os.Stderr)

// Execute system command.
Expand Down

0 comments on commit 741f2d3

Please sign in to comment.