mirror of
https://github.com/docker/compose.git
synced 2025-07-29 16:44:20 +02:00
Don't SetRawTerminal() when exec is run with -T
Signed-off-by: Yuri Kanivetsky <yuri.kanivetsky@gmail.com>
This commit is contained in:
parent
99cd90a4b2
commit
37f763f009
@ -96,7 +96,7 @@ func (s *composeService) interactiveExec(ctx context.Context, opts api.RunOption
|
|||||||
}
|
}
|
||||||
|
|
||||||
in := streams.NewIn(opts.Stdin)
|
in := streams.NewIn(opts.Stdin)
|
||||||
if in.IsTerminal() {
|
if in.IsTerminal() && opts.Tty {
|
||||||
state, err := term.SetRawTerminal(in.FD())
|
state, err := term.SetRawTerminal(in.FD())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user