Skip to content

Commit

Permalink
Enable path conversion for Docker on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yvanzo committed Oct 18, 2022
1 parent 5d566f3 commit bcd3ba9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/configure
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ case "$1" in
sed -i.bak -e '/^COMPOSE_FILE=/d' .env && rm -f .env.bak
if [[ $OS == Windows_NT ]]
then
# Optional but convenient to copy/paste paths from file explorer
# https://docs.docker.com/compose/reference/envvars/#compose_convert_windows_paths
if ! grep -q '^COMPOSE_CONVERT_WINDOWS_PATHS=' "$MB_DOCKER_ROOT/.env"
then
echo 'COMPOSE_CONVERT_WINDOWS_PATHS=1' >> .env
fi
# Mandatory to keep this script working
# https://docs.docker.com/compose/reference/envvars/#compose_path_separator
if ! grep -q '^COMPOSE_PATH_SEPARATOR=:$' "$MB_DOCKER_ROOT/.env"
Expand Down

0 comments on commit bcd3ba9

Please sign in to comment.