Răsfoiți Sursa

Merge pull request #6104 from glorpen/fix-pipes

Fixes pipe handling in container mode.
Joffrey F 7 ani în urmă
părinte
comite
6e95eb7437
1 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  1. 4 3
      script/run/run.sh

+ 4 - 3
script/run/run.sh

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