From 125dda147b66859b9011ee63082ee32cddd506c5 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 8 Jun 2023 17:36:19 +0000 Subject: [PATCH] fix: deprecation warn Signed-off-by: Carlos Alexandro Becker --- exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.go b/exec.go index fb6d91e..ef353eb 100644 --- a/exec.go +++ b/exec.go @@ -109,7 +109,7 @@ func (p *Program) exec(c ExecCommand, fn ExecCallback) { } c.SetStdin(p.input) - c.SetStdout(p.output.TTY()) + c.SetStdout(p.output.Writer()) c.SetStderr(os.Stderr) // Execute system command.