Skip to content

Commit 3234153

Browse files
committed
Docker: use --no-terminal global option
1 parent 0860f0b commit 3234153

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Stack/Docker.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ runContainerAndExit modConfig
163163
liftIO ((,,) <$> lookupEnv "DOCKER_HOST"
164164
<*> lookupEnv "DOCKER_CERT_PATH"
165165
<*> lookupEnv "DOCKER_TLS_VERIFY")
166-
(isStdinTerminal,isStdoutTerminal,isStderrTerminal) <-
167-
liftIO ((,,) <$> hIsTerminalDevice stdin
168-
<*> hIsTerminalDevice stdout
169-
<*> hIsTerminalDevice stderr)
166+
isStdoutTerminal <- asks getTerminal
167+
(isStdinTerminal,isStderrTerminal) <-
168+
liftIO ((,) <$> hIsTerminalDevice stdin
169+
<*> hIsTerminalDevice stderr)
170170
pwd <- getWorkingDir
171171
when (maybe False (isPrefixOf "tcp://") dockerHost &&
172172
maybe False (isInfixOf "boot2docker") dockerCertPath)

0 commit comments

Comments
 (0)