Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert paths with cygpath if available in build-docker.sh #403

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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