1
0
mirror of https://github.com/docker/cli.git synced 2026-01-19 21:41:31 +03:00

Merge pull request #5979 from rhatdan/terminal

This check was backwards.
Upstream-commit: 718e522c7124789cce120b77c96a420de971722c
Component: engine
This commit is contained in:
Michael Crosby
2014-05-21 14:51:13 -07:00

View File

@@ -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)
}