Merge pull request #8938 from ndeloof/run_T

don't SetRawTerminal when run is ran with -T
This commit is contained in:
Ulysses Souza 2021-11-18 12:57:12 +01:00 committed by GitHub
commit dfa93d834f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ func (s *composeService) runInteractive(ctx context.Context, containerID string,
}
in := streams.NewIn(opts.Stdin)
if in.IsTerminal() {
if in.IsTerminal() && opts.Tty {
state, err := term.SetRawTerminal(in.FD())
if err != nil {
return 0, err