mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-12 14:09:25 +02:00
base/dockcross: Run docker with "-ti" only if a tty or pts is attached
This commit reverts f07ca00
(base: Do not add -i -t flags to run command
by default) and ensure tty is available before specifying the flags.
This commit is contained in:
@ -179,7 +179,8 @@ fi
|
||||
#------------------------------------------------------------------------------
|
||||
# Now, finally, run the command in a container
|
||||
#
|
||||
docker run -t --rm \
|
||||
tty -s && TTY_ARGS=-ti || TTY_ARGS=
|
||||
docker run $TTY_ARGS --rm \
|
||||
-v $PWD:/work \
|
||||
$USER_IDS \
|
||||
$FINAL_ARGS \
|
||||
|
Reference in New Issue
Block a user