mirror of https://github.com/docker/docs.git
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
|
@ -76,7 +76,7 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, proto, addr string, tlsC
|
||||||
}
|
}
|
||||||
|
|
||||||
if in != nil {
|
if in != nil {
|
||||||
if file, ok := in.(*os.File); ok {
|
if file, ok := out.(*os.File); ok {
|
||||||
terminalFd = file.Fd()
|
terminalFd = file.Fd()
|
||||||
isTerminal = term.IsTerminal(terminalFd)
|
isTerminal = term.IsTerminal(terminalFd)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue