|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] automation: avoid globbering the docker run args
commit 4905c2da20e2d95ff577033b0513d4bb57a9c086
Author: Olaf Hering <olaf@xxxxxxxxx>
AuthorDate: Thu Jul 8 16:56:49 2021 +0200
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Fri Jul 9 13:28:52 2021 +0100
automation: avoid globbering the docker run args
containerize bash -c './configure && make' fails due to shell expansion.
Collect all arguments for the script and pass them verbatim to the
docker run command.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Acked-by: Andrew Cooper <andew.cooper3@xxxxxxxxxx>
---
automation/scripts/containerize | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/automation/scripts/containerize b/automation/scripts/containerize
index 59edf0ba40..7682ccd347 100755
--- a/automation/scripts/containerize
+++ b/automation/scripts/containerize
@@ -47,10 +47,10 @@ case "_${CONTAINER_UID0}" in
esac
# Save the commands for future use
-cmd=$@
+cmd=("$@")
# If no command was specified, just drop us into a shell if we're interactive
-[ $# -eq 0 ] && tty -s && cmd="/bin/bash"
+[ $# -eq 0 ] && tty -s && cmd=("/bin/bash")
# Are we in an interactive terminal?
tty -s && termint=t
@@ -104,4 +104,4 @@ exec ${docker_cmd} run \
${CONTAINER_ARGS} \
-${termint}i --rm -- \
${CONTAINER} \
- ${cmd}
+ "${cmd[@]}"
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |