mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
This check was backwards.
If I do a docker events > /tmp/out I do not want the control characters getting written to the file. The check should check the output file not the input file. Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
This commit is contained in:
parent
b7f9e683c3
commit
26b4a4920a
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, proto, addr string, tlsC
|
|||
}
|
||||
|
||||
if in != nil {
|
||||
if file, ok := in.(*os.File); ok {
|
||||
if file, ok := out.(*os.File); ok {
|
||||
terminalFd = file.Fd()
|
||||
isTerminal = term.IsTerminal(terminalFd)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue