Skip to content

Commit

Permalink
Fixed command line syntax error that was permitted in docker < 24.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvetere committed Oct 2, 2023
1 parent f0a8496 commit db1bccf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/dev-shell
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,14 @@ if [ $PULL -eq 1 ] ; then
PULL_OPT="--pull always"
fi

ENTRY_POINT_DIR_OPT=/entry
if [ -n "$ENTRY_POINT_DIR" ] ; then
ENTRY_POINT_DIR_OPT="$ENTRY_POINT_DIR:$ENTRY_POINT_DIR_OPT"
fi
ENTRY_POINT_DIR_OPT="-v $ENTRY_POINT_DIR_OPT"

"${DOCKER}" run ${PULL_OPT} -it --rm \
-v "${ENTRY_POINT_DIR}":/entry \
${ENTRY_POINT_DIR_OPT} \
${MAP_REPO_DIR_OPT} \
${MAP_PROJ_DIR_OPT} \
${SET_WORK_DIR_OPT} \
Expand Down

0 comments on commit db1bccf

Please sign in to comment.