Skip to content

Commit 37f763f

Browse files
x-yurindeloof
authored andcommitted
Don't SetRawTerminal() when exec is run with -T
Signed-off-by: Yuri Kanivetsky <[email protected]>
1 parent 99cd90a commit 37f763f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/compose/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (s *composeService) interactiveExec(ctx context.Context, opts api.RunOption
9696
}
9797

9898
in := streams.NewIn(opts.Stdin)
99-
if in.IsTerminal() {
99+
if in.IsTerminal() && opts.Tty {
100100
state, err := term.SetRawTerminal(in.FD())
101101
if err != nil {
102102
return err

0 commit comments

Comments
 (0)