From 137a9fcb944f3d00f4ae253f2648de28a137f3da Mon Sep 17 00:00:00 2001 From: Kevin Albertson Date: Sat, 3 Aug 2024 20:26:08 -0400 Subject: [PATCH] fix `run-server.sh` path when run on Cygwin --- .evergreen/docker/run-server.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.evergreen/docker/run-server.sh b/.evergreen/docker/run-server.sh index 4baef388..f6730cb5 100755 --- a/.evergreen/docker/run-server.sh +++ b/.evergreen/docker/run-server.sh @@ -69,7 +69,13 @@ fi test -t 1 && ARGS+=" -t" # Map in the DRIVERS_TOOLS directory. -ARGS+=" -v `pwd`:/root/drivers-evergreen-tools" +HOSTPATH="$(pwd)" +if [[ "$(uname -s)" == CYGWIN* ]]; then + # Convert to Windows-style path when run in Cygwin. + HOSTPATH=$(cygpath -w "$HOSTPATH") +fi + +ARGS+=" -v $HOSTPATH:/root/drivers-evergreen-tools" # Launch server docker container. docker run $ARGS $NAME $ENTRYPOINT