Merge pull request #6104 from glorpen/fix-pipes

Fixes pipe handling in container mode.
This commit is contained in:
Joffrey F 2018-07-31 15:39:07 -07:00 committed by GitHub
commit 6e95eb7437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -47,10 +47,11 @@ if [ -n "$HOME" ]; then
fi
# Only allocate tty if we detect one
if [ -t 1 ]; then
DOCKER_RUN_OPTIONS="-t"
fi
if [ -t 0 ]; then
if [ -t 1 ]; then
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -t"
fi
else
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -i"
fi