Skip to content

Commit d8e45b7

Browse files
committed
Enable path conversion for Docker on Windows
1 parent 85f8f40 commit d8e45b7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

admin/configure

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ case "$1" in
206206
sed -i.bak -e '/^COMPOSE_FILE=/d' .env && rm -f .env.bak
207207
if [[ $OS == Windows_NT ]]
208208
then
209+
# Optional but convenient to copy/paste paths from file explorer
210+
# https://docs.docker.com/compose/reference/envvars/#compose_convert_windows_paths
211+
if ! grep -q '^COMPOSE_CONVERT_WINDOWS_PATHS=' "$MB_DOCKER_ROOT/.env"
212+
then
213+
echo 'COMPOSE_CONVERT_WINDOWS_PATHS=1' >> .env
214+
fi
209215
# Mandatory to keep this script working
210216
# https://docs.docker.com/compose/reference/envvars/#compose_path_separator
211217
if ! grep -q '^COMPOSE_PATH_SEPARATOR=:$' "$MB_DOCKER_ROOT/.env"

0 commit comments

Comments
 (0)