Skip to content

Conversation

tcv-git
Copy link

@tcv-git tcv-git commented May 5, 2020

The utility cygpath is available under Cygwin or MSYS2 which is used for "Git Bash". These are two of the most common ways to run a shell script on Windows.

This commit updates build-docker.sh to use cygpath to convert arguments to Docker into the correct native format when running on Windows.

NB 1: converting DIR is not necessary on MSYS2 because the conversion layer does it for you when it sees that docker isn't linked to msys. This doesn't work for CONFIG_FILE because the converter doesn't recognize the -v xx:yy:zz syntax for setting up a volume.

NB 2: I have used cygpath -d rather than cygpath -w because this gives a path without spaces or wide-characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant