quote HOST_PWD in docker cmd to allow spaces

This commit is contained in:
chadawagner 2016-11-17 21:19:54 -08:00 committed by GitHub
parent 3a0f84f977
commit 9373f029f4

View File

@ -199,7 +199,7 @@ fi
tty -s && TTY_ARGS=-ti || TTY_ARGS= tty -s && TTY_ARGS=-ti || TTY_ARGS=
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 \
$USER_IDS \ $USER_IDS \
$FINAL_ARGS \ $FINAL_ARGS \
$FINAL_IMAGE "$@" $FINAL_IMAGE "$@"