[Buildroot] [git commit branch/next] utils/docker-run: fix shellcheck errors
Arnout Vandecappelle
arnout at mind.be
Wed Feb 8 14:28:31 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=2c3466bbeeedad1cfc8fda5120d452fd786d68e4
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
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 <arnout at mind.be>
---
utils/docker-run | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/docker-run b/utils/docker-run
index 5653764254..164e11c0e6 100755
--- a/utils/docker-run
+++ b/utils/docker-run
@@ -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}" "${@}"
More information about the buildroot
mailing list