From: Olaf Hering Date: Thu, 8 Jul 2021 14:56:49 +0000 (+0200) Subject: automation: avoid globbering the docker run args X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~333 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4905c2da20e2d95ff577033b0513d4bb57a9c086;p=xen.git 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 Acked-by: Andrew Cooper --- 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[@]}"