dockcross: Do not try to use -ti under MSYS

Avoid errors, complaints, and suggestions to use winpty.
This commit is contained in:
Matt McCormick 2019-03-05 17:45:09 -05:00
parent 17ecb746ec
commit 49f7fc05fe
No known key found for this signature in database
GPG Key ID: 45DA982347954FA5

View File

@ -215,7 +215,8 @@ fi
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Now, finally, run the command in a container # Now, finally, run the command in a container
# #
tty -s && TTY_ARGS=-ti || TTY_ARGS= TTY_ARGS=
tty -s && [ -z "$MSYS" ] && TTY_ARGS=-ti
CONTAINER_NAME=dockcross_$RANDOM CONTAINER_NAME=dockcross_$RANDOM
docker run $TTY_ARGS --name $CONTAINER_NAME \ docker run $TTY_ARGS --name $CONTAINER_NAME \
-v "$HOST_PWD":/work \ -v "$HOST_PWD":/work \