Skip to content

Commit 5a22dc6

Browse files
author
Derek Hower
committed
Make sure Docker maps ROOT
Signed-off-by: Derek Hower <[email protected]>
1 parent fe55b83 commit 5a22dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ elif [ "${CONTAINER_TYPE}" == "docker" ]; then
8282
docker build -t riscvintl/udb:${CONTAINER_TAG} -f .devcontainer/Dockerfile .
8383
fi
8484
if [ -t 1 -a -t 0 ]; then
85-
DOCKER_BASE="docker run -it -v $(pwd):$(pwd) -w $(pwd) riscvintl/udb:${CONTAINER_TAG}"
85+
DOCKER_BASE="docker run -it -v $(ROOT):$(ROOT) -w $(ROOT) riscvintl/udb:${CONTAINER_TAG}"
8686
else
87-
DOCKER_BASE="docker run -v $(pwd):$(pwd) -w $(pwd) riscvintl/udb:${CONTAINER_TAG}"
87+
DOCKER_BASE="docker run -v $(ROOT):$(ROOT) -w $(ROOT) riscvintl/udb:${CONTAINER_TAG}"
8888
fi
8989
RUN="${DOCKER_BASE}"
9090
else

0 commit comments

Comments
 (0)