Skip to content

Commit

Permalink
utils/docker-run: fix shellcheck errors
Browse files Browse the repository at this point in the history
In utils/docker-run line 10:
    --user $(id -u):$(id -g) \
           ^------^ SC2046: Quote this to prevent word splitting.
                    ^------^ SC2046: Quote this to prevent word splitting.

The suggestions from shellcheck can be applied.

Signed-off-by: Arnout Vandecappelle <[email protected]>
  • Loading branch information
arnout committed Feb 8, 2023
1 parent 7150edc commit 2c3466b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/docker-run
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ IMAGE=$(grep ^image: "${MAIN_DIR}/.gitlab-ci.yml" | \
sed -e 's,^image: ,,g' | sed -e 's,\$CI_REGISTRY,registry.gitlab.com,g')

exec docker run -it --rm \
--user $(id -u):$(id -g) \
--user "$(id -u):$(id -g)" \
--mount "type=bind,src=${MAIN_DIR},dst=${MAIN_DIR}" \
--workdir "${MAIN_DIR}" \
"${IMAGE}" "${@}"

0 comments on commit 2c3466b

Please sign in to comment.