浏览代码

Merge pull request #5979 from rhatdan/terminal

This check was backwards.
Michael Crosby 11 年之前
父节点
当前提交
718e522c71
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/client/cli.go

+ 1 - 1
api/client/cli.go

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