dockcross: Fix "tr: Illegal byte sequence" when generating container name on MacOSx

See #50
This commit is contained in:
Jean-Christophe Fillion-Robin 2016-10-27 13:20:31 -04:00
parent c5edcb3a74
commit 3288c877e5
No known key found for this signature in database
GPG Key ID: 15C1A2812F958BD3

View File

@ -180,7 +180,7 @@ fi
# Now, finally, run the command in a container
#
tty -s && TTY_ARGS=-ti || TTY_ARGS=
CONTAINER_NAME=dockcross_$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 7 | head -n 1)
CONTAINER_NAME=dockcross_$(cat /dev/urandom | base64 | tr -dc 'a-zA-Z0-9' | fold -w 7 | head -n 1)
docker run $TTY_ARGS --name $CONTAINER_NAME \
-v $PWD:/work \
$USER_IDS \