Skip to content

Commit 96af3a3

Browse files
committed
Convert paths with cygpath if available in build-docker.sh
1 parent 08fc0b9 commit 96af3a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build-docker.sh

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ else
4444
source ${CONFIG_FILE}
4545
fi
4646

47+
# Convert paths to DOS format under Cygwin/MSYS2
48+
if test -x /usr/bin/cygpath; then
49+
DIR=$(cygpath -da "$DIR")
50+
CONFIG_FILE=$(cygpath -da "$CONFIG_FILE")
51+
fi
52+
4753
CONTAINER_NAME=${CONTAINER_NAME:-pigen_work}
4854
CONTINUE=${CONTINUE:-0}
4955
PRESERVE_CONTAINER=${PRESERVE_CONTAINER:-0}

0 commit comments

Comments
 (0)