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 3938164 commit 4ede8a9
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 4ede8a9

Please sign in to comment.