Skip to content

Commit

Permalink
docker-devel.sh: pass arguments in double quotes
Browse files Browse the repository at this point in the history
Entrypoint in phoenixrtos/devel image is bash -l -c which passes
additional arguments to bash not to the program rum by bash.

JIRA: RTOS-952
  • Loading branch information
badochov committed Oct 16, 2024
1 parent a6d27c9 commit 9e87a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-devel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ PATH_TO_PROJECT="$(dirname "$(realpath "${BASH_SOURCE[0]}")")/"
if [ "$#" -eq 0 ]; then
exec docker run -it --privileged --rm -v /dev/bus/usb/:/dev/bus/usb -v "${PATH_TO_PROJECT}:/project" -w /project $DOCKER_IMG_NAME bash
else
docker run -it --privileged --rm -v /dev/bus/usb/:/dev/bus/usb -v "${PATH_TO_PROJECT}:/project:delegated" -w /project $DOCKER_IMG_NAME "$@"
docker run -it --privileged --rm -v /dev/bus/usb/:/dev/bus/usb -v "${PATH_TO_PROJECT}:/project:delegated" -w /project $DOCKER_IMG_NAME "$(printf "%q " "$@")"
fi

0 comments on commit 9e87a25

Please sign in to comment.