mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-23 09:04:27 +01:00
Merge pull request #265 from urzds/patch-1
Fix dockcross script for users/groups containing spaces
This commit is contained in:
commit
bb77f813c0
@ -178,7 +178,7 @@ UBUNTU_ON_WINDOWS=$([ -e /proc/version ] && grep -l Microsoft /proc/version || e
|
|||||||
MSYS=$([ -e /proc/version ] && grep -l MINGW /proc/version || echo "")
|
MSYS=$([ -e /proc/version ] && grep -l MINGW /proc/version || echo "")
|
||||||
|
|
||||||
if [ -z "$UBUNTU_ON_WINDOWS" -a -z "$MSYS" ]; then
|
if [ -z "$UBUNTU_ON_WINDOWS" -a -z "$MSYS" ]; then
|
||||||
USER_IDS="-e BUILDER_UID=$( id -u ) -e BUILDER_GID=$( id -g ) -e BUILDER_USER=$( id -un ) -e BUILDER_GROUP=$( id -gn )"
|
USER_IDS=(-e BUILDER_UID="$( id -u )" -e BUILDER_GID="$( id -g )" -e BUILDER_USER="$( id -un )" -e BUILDER_GROUP="$( id -gn )")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change the PWD when working in Docker on Windows
|
# Change the PWD when working in Docker on Windows
|
||||||
@ -220,7 +220,7 @@ 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 \
|
||||||
$HOST_VOLUMES \
|
$HOST_VOLUMES \
|
||||||
$USER_IDS \
|
"${USER_IDS[@]}" \
|
||||||
$FINAL_ARGS \
|
$FINAL_ARGS \
|
||||||
$FINAL_IMAGE "$@"
|
$FINAL_IMAGE "$@"
|
||||||
run_exit_code=$?
|
run_exit_code=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user