[in-container] fix directories

main
Motiejus Jakštys 2021-05-19 23:53:06 +03:00 committed by Motiejus Jakštys
parent d100f215d7
commit 98baa3f734
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ set -euo pipefail
# #
# Usage: # Usage:
# ./in-container make help # ./in-container make help
# ./in-container make -j mj-msc-full.pdf # ./in-container make -j2 mj-msc-full.pdf
# ... # ...
NAME=wm-mj-build NAME=wm-mj-build
@ -18,6 +18,6 @@ fi
exec docker run -ti --rm \ exec docker run -ti --rm \
--net=host \ --net=host \
-v /var/run/docker.sock:/var/run/docker.sock \ -v /var/run/docker.sock:/var/run/docker.sock \
-v $(git rev-parse --show-toplevel):/x \ -v ${PWD}:/x \
-w /x/$(basename ${PWD}) \ -w /x \
"$NAME" "$@" "$NAME" "$@"