Allow the specify the working dir with run-dev-container.sh

Closes gh-29
This commit is contained in:
Sébastien Deleuze
2023-09-18 15:22:16 +02:00
parent 73f7ae2ced
commit 3c274414c1

View File

@@ -17,6 +17,20 @@ while test $# -gt 0; do
echo "-r, --rebuild force container image rebuild"
exit 0
;;
-w)
shift
if test $# -gt 0; then
export HOST_WORK_DIR=$(cd $1; pwd)
else
echo "no working directory specified"
exit 1
fi
shift
;;
--workdir)
export HOST_WORK_DIR=`echo $(cd $1; pwd) | sed -e 's/^[^=]*=//g'`
shift
;;
-r)
export REBUILD=true
shift