From nobody Fri May 3 14:20:21 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1625756229138853.9787559983972; Thu, 8 Jul 2021 07:57:09 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.153194.283029 (Exim 4.92) (envelope-from ) id 1m1VSS-0004Pr-04; Thu, 08 Jul 2021 14:56:56 +0000 Received: by outflank-mailman (output) from mailman id 153194.283029; Thu, 08 Jul 2021 14:56:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m1VSR-0004Pk-Su; Thu, 08 Jul 2021 14:56:55 +0000 Received: by outflank-mailman (input) for mailman id 153194; Thu, 08 Jul 2021 14:56:54 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m1VSQ-0004OF-Qv for xen-devel@lists.xenproject.org; Thu, 08 Jul 2021 14:56:54 +0000 Received: from mo4-p01-ob.smtp.rzone.de (unknown [81.169.146.166]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 264e25f5-6f9d-40c3-919f-3c030941e29c; Thu, 08 Jul 2021 14:56:53 +0000 (UTC) Received: from sender by smtp.strato.de (RZmta 47.28.1 AUTH) with ESMTPSA id 30791cx68Eupb39 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 8 Jul 2021 16:56:51 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 264e25f5-6f9d-40c3-919f-3c030941e29c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1625756212; s=strato-dkim-0002; d=aepfle.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=as8CzECp3VUH0KQhsm3sCfDW5/hNDE73Qf/G7ueUrrU=; b=Agnn9Oib4ufeF1ACHY9GeRPMgCZmth5gLwWF9O1sTxZn3qf4RRdTYNpbdRTmidbXOC zGvHgEg27m5s4JYjg+15Ich7P0gqcNd8iaIG8O381rDOxbqHke63ISHVp7Gd8SC+d6U0 j8UUg+Q61P5NDntyoiQ8x75HBKWQGwYvBt/U274i00Q4ehhZvjBfawvmVJc8euOwbu6c W0KByl49E9AaRCglfd2qyn+8F1OPJ4lyuXIvxFJpXMC49ya9v75eMDvXnsFMKEKQx5Ic WywUo5f5ctLcd0MnCAWk++jcxTXN/bIFgAADzeHutu2riuGhMGbvGiY6+JyApierA3Pr CHeA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QXkBR9MXjAuzpIG0mv9coXAgs3rVb2Qcstn6hLmi/A5ONQi+eEunNNoWD5g0T8" X-RZG-CLASS-ID: mo00 From: Olaf Hering To: xen-devel@lists.xenproject.org Cc: Olaf Hering , Doug Goldstein Subject: [PATCH v1] automation: avoid globbering the docker run args Date: Thu, 8 Jul 2021 16:56:49 +0200 Message-Id: <20210708145650.8961-1-olaf@aepfle.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1625756230966100001 Content-Type: text/plain; charset="utf-8" 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 --- automation/scripts/containerize | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/automation/scripts/containerize b/automation/scripts/container= ize index 59edf0ba40..7682ccd347 100755 --- a/automation/scripts/containerize +++ b/automation/scripts/containerize @@ -47,10 +47,10 @@ case "_${CONTAINER_UID0}" in esac =20 # Save the commands for future use -cmd=3D$@ +cmd=3D("$@") =20 # If no command was specified, just drop us into a shell if we're interact= ive -[ $# -eq 0 ] && tty -s && cmd=3D"/bin/bash" +[ $# -eq 0 ] && tty -s && cmd=3D("/bin/bash") =20 # Are we in an interactive terminal? tty -s && termint=3Dt @@ -104,4 +104,4 @@ exec ${docker_cmd} run \ ${CONTAINER_ARGS} \ -${termint}i --rm -- \ ${CONTAINER} \ - ${cmd} + "${cmd[@]}"