Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1281586imm; Tue, 15 May 2018 17:13:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp4K58+NtEvg5VmRAmdCga/+9yktO+ilHsrkzNf9GzhmsqZdjxY1HP9qzWLH+LDvRrzFKNc X-Received: by 2002:a17:902:7883:: with SMTP id q3-v6mr16629007pll.71.1526429639724; Tue, 15 May 2018 17:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526429639; cv=none; d=google.com; s=arc-20160816; b=lGK2ondYyJqlCngAfwI7IYOaHtdnubUJkkaoBEJXWyIz7kC8QRuNx1AKX4NTC9mcBf Sgjh57LmO0fXghsjpKPknyvFZ56R0bYLQtxxZsupXW9CEbzHdQyxiavqYq1fPDRU5ROM rO3cM7tlUgKLB0DdO/F9OwcRIlf1PFzgyOGcgl6aPIazImQH/TZFUI77fEHqBvsEXyx8 jis2sFMGuTmxv3+Bc/Z8GyPioQSlN2gny16qrbi/PXsITfwMD8Nio/+vEkI58zOMrsrH Qv998zhII25WLGMS96xr9Qedl/kMAY9XIT9ZChBfmlOJJcPabUkBHqZ42DgOgbQ7DzNM KkiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=pmrvV0YOl8NJDgpXGjpqb85po1IwVfdHYRs6NAeLXTU=; b=hcOEdOyfh6E97MEa/ynMkFv1bvZTkv+0g6YPFt62eJKR4NclRz8MUbGj4hIc/HJQyk EORsN/Ao7iwTI9C0mjFNUFSpx+a+FH4zsR8Gja+4y+6cVub7tIE3AEwIiZNnMrrymoDq vpCFihTeUa5eeVymjoDSYE+tVS1JX9J29JEdv+iEXXZryOeqzATgvttcm0kI8L1pQmi+ aUwbxPq/cSRv1LwoGKZRV9vMlW+oSuk+5V0/kcvooxKAnWZpsH6JGQWOzZ7MdoWMECT5 z0kjoG1ZbD42IknCBFrX36RwUIoarH2yA94oEHVFEcG3T4h6t+4BeocIsAcByAfyZca8 NQug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r+R34v6s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a35-v6si1101347pli.85.2018.05.15.17.13.45; Tue, 15 May 2018 17:13:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r+R34v6s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752241AbeEPANR (ORCPT + 99 others); Tue, 15 May 2018 20:13:17 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39598 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751489AbeEPANP (ORCPT ); Tue, 15 May 2018 20:13:15 -0400 Received: by mail-pl0-f66.google.com with SMTP id c19-v6so999471pls.6 for ; Tue, 15 May 2018 17:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=pmrvV0YOl8NJDgpXGjpqb85po1IwVfdHYRs6NAeLXTU=; b=r+R34v6sDdzuZ24KnCL0nC0Vv+/Uvdw/A63xxQZcrYfcTbqlaGxIhHHGEZcjWFouOP 6YUX8HMJQVax4pX/8gYgL2hSMqEbXKG6nZC1KG7rMzSDPNnd4nLxGtEykDzOLYLIrLFC 85G+Q0bAvJRoCLekebKCDxxRjxOL/b1X2Acq7Xg7lFQR1KFb90pVNoBBEN1K3Vm/c5h7 caEziavfL/Fe9ANyd1ovpyiX4YDP26hui8fMlr19c8Hv3+Bl90fB3sE9Lr+xWNBRbmv+ f6yOFJIg5R7IYf+ldHrfUBzh2NYA9zA+FGQfgCmuGIaq13Re4Aj9V8FMB/kON6bQD2It 4yqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=pmrvV0YOl8NJDgpXGjpqb85po1IwVfdHYRs6NAeLXTU=; b=eSw2CsSMa/CjSPi036yzrW/rVb1zlGraPVjW93TR5tSoMCG9tBYIjrLQJ5HoASy18L fyvDkjaa8zAw+vxnOx8ilyLuOrnZBjHKZFpl1yOAX447oIe8PrZHcmUg9hb3ZouWs9Jd rGZHrCmpVmqdAf/FPVnoLcIigvGV61NEbJZ2mcYyWY07W/tFhJiIKSvy44zc95uNQm4l 8fCBCuqIkwCoGnL5+T17IB4YT2DUqfjUilvXl9prFToAsKW6rp9tA2EvZrY4zSyK05be g8kd65n1mOkjebNtjmlkpg0ZOZJQEKCgYUqD4gOFi9b5LCIKD/80mxkHT6Bov7Nov/au ienQ== X-Gm-Message-State: ALKqPwftEuNcF0RASyzFyVtvDkidTzDf05i+J36KLaI447IENK+BDJ/o 2LekGerubOGoiyVQr2Cg/eiRAg== X-Received: by 2002:a17:902:1a8:: with SMTP id b37-v6mr13337253plb.326.1526429594802; Tue, 15 May 2018 17:13:14 -0700 (PDT) Received: from gmail.com ([2605:e000:1117:c0e3:2e0:1bff:fe70:ea]) by smtp.gmail.com with ESMTPSA id c21-v6sm1515373pfb.116.2018.05.15.17.13.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 17:13:13 -0700 (PDT) Date: Tue, 15 May 2018 14:13:11 -1000 From: Joey Pabalinas To: linux-kernel@vger.kernel.org Cc: Masahiro Yamada , Andrew Morton , Arend van Spriel , Robert Jarzmik , Joey Pabalinas Subject: [PATCH] scripts/tags.sh: don't rely on parsing `ls` for $ALLSOURCE_ARCHS generation Message-ID: <20180516001311.ng6wyxdjqty5ef5j@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="q74megjw7qc7hkty" Content-Disposition: inline User-Agent: NeoMutt/20180323-62-378db9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --q74megjw7qc7hkty Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Parsing `ls` is fragile at best and _will_ fail when $tree contains spaces. Replace this with a glob-generated string and directly assign it to $ALLSOURCE_ARCHS; use a subshell so `cd` doesn't affect the current working directory. Signed-off-by: Joey Pabalinas 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 78e546ff689c2d5f40..b84acf8889fe836c60 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -29,14 +29,11 @@ fi ignore=3D"$ignore ( -path ${tree}tools ) -prune -o" =20 # Find all available archs find_all_archs() { - ALLSOURCE_ARCHS=3D"" - for arch in `ls ${tree}arch`; do - ALLSOURCE_ARCHS=3D"${ALLSOURCE_ARCHS} "${arch##\/} - done + ALLSOURCE_ARCHS=3D"$( (cd "${tree}arch/" && echo *) )" } =20 # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH if [ "${ALLSOURCE_ARCHS}" =3D "" ]; then ALLSOURCE_ARCHS=3D${SRCARCH} --=20 2.17.0.rc1.35.g90bbd502d54fe92035.dirty --q74megjw7qc7hkty Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKlZXrihdNOcUPZTNruvLfWhyVBkFAlr7d5cACgkQruvLfWhy VBm98BAAyFAeYjq+392LpgL8kvor1VJRF2MD4wl/lzJBPLhz85QtAQkuFoOAjGDI gdLKd0MC5OYgQq+wS2GLdyMp7qOoPfZdG+nKz5D/NepIgjK4ePzuQ07YIFuo/L9Z gW+LhHWQ3D0WmLw5i365GGI/e3jgs+apmU7dVfRurF0DoVj4a9KP61SFNtlWsZOL E3+SoqICWyuuy/oIOZNXnbbDsapV8IbVsi51jrUWNNZdfevkYFyBG6YLvHyQ0WgU agwUlMwgKKA0yuBDCGNX6BUHUBwzSpA/0AMmebIqRMBpIdgVFk5oPeYH24iISSA7 6wqeohte2XufoLEQ0pq+2BH3bcV2YthBXUhaeGNP0etklUb3hHDKQW1etNSzwJSN p8GMdtV6jXCXuZtSKBYkjD6oJiY9hHPPCiysxoH7tdcmioqQzvWogU8+WMZ/nG/Y drC0Odm0CPiXprYPftaYsq4acmhHq5dF0+NlU76XcqKmaSRruCQ6yXqoCSA0M+45 AQV5CT/09Z0RWTwheNOMZDxTyIqO6FCXHsBQW82h4OI/IE6d8edOs2wO+6yEdj6z GFW05V06skx6dspQO9ElKqkyVzbSt3YUb9na5cYwOiYltzw80avsTPASFpCwdVAJ Usy4otEJhIXw0NYKW/cauIu4HsSk9UxFyDWMu3xNVF7KqaM+mXg= =qrGg -----END PGP SIGNATURE----- --q74megjw7qc7hkty--