Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3765148imm; Thu, 17 May 2018 14:26:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr71SrLt0ARL5hCj5VUnNMbSIMY+Zut5wxuH9XUgavyilOb2bXMhpDDjvi4qYJoRVL3Ou3o X-Received: by 2002:a17:902:bc84:: with SMTP id bb4-v6mr6593888plb.84.1526592409365; Thu, 17 May 2018 14:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526592409; cv=none; d=google.com; s=arc-20160816; b=BThCu20WKEvxxHZV9oA0VzeefBNbF02ux3HqmoKpLv+zzd1DIMue1vMqUykEutgGkY DhLg416B3RyFraJntxrCCpmQgsDPAhIqdgzfR9Q/tPqlvntavapbZRQvlgVJlnz/oihi D6cgnkJQdorGaDJ7kpTDg1IxH2EtPnAMEgrtoNmI5u9mKmc5fHQELsLNtVRK3f5+i/kq jqrKWE4ZacBWAzxAc4M2OfOSK4UoK5CdNPR9tKXFDscdOK1L/gz0G/YY0rz/Tc1NBz38 24kZHQKTKLVcfhjJG88J9d+FDz9JafOcAC+0jsGLYliYVqJ2h2Rb74M9idfqmGsOZaaf uhqQ== 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=k+os5gDhRvIJwJKlqJ4NyXeZPn6kmZ4HJ+gX04pZJx4=; b=gkKe6MBmCp00hlW6QMFwH5rZL3vPdb/ekJlJhI75ab+YgxG2Pu+IyhCsasolIBYxLv /uMxIo2+hhO6tzqMgHhgRVc1GELMHMuRk18mt39MBdOgLZzIS8DerD81SLzarQayqq2T oXXzeTjLhBGmsq+06wfSFe0MVV1udaw9kpqCjlyRj2cBX0FeXRljs0UuxAb4hdasMGGN /vCbrG7re4dpWKcY794Q/AyvVM05944/gdr7OdYz25RyI3+pLEgSy/N7jxhECzK4UWMT keDWZwnPcgqEVBPlQomoEELjnoXxZIFaWkqWSH/sPjPrQ2Xh4H3nbqxcSQ4lvuGxQTwE tHTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=db4QZKv1; 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 h8-v6si6129780pls.502.2018.05.17.14.26.34; Thu, 17 May 2018 14:26:49 -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=db4QZKv1; 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 S1751843AbeEQV0Z (ORCPT + 99 others); Thu, 17 May 2018 17:26:25 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:33424 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750924AbeEQV0Y (ORCPT ); Thu, 17 May 2018 17:26:24 -0400 Received: by mail-pl0-f65.google.com with SMTP id n10-v6so3286448plp.0 for ; Thu, 17 May 2018 14:26:24 -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=k+os5gDhRvIJwJKlqJ4NyXeZPn6kmZ4HJ+gX04pZJx4=; b=db4QZKv1QQHq/vdfNu1b9HqD4XZ/5dxqoEWlOv1fy5db9edHT4HEnMRa4NZ6iTqWsP WAe5MD1j2hXoH0dSFOsJaCH51MWep1DEICfFkREQuu1YLHrDoFZoSjOvn6atmQejjTqZ KMr/cTkw2GmKd+q03l3tWSKkMycTrsD4rHcFNtEyldlIjd9+suE0Jy+aQPaKYe2ZOlto uhNVfr65Cy5Ia2gJ20TCnj9VBdDbaFmXF23OgS2DsGjId4BceXpOHin/kmP29XOBlUO9 sdmoqqZFC3GLzlKaD/ap7NYmvhIiN9X3KmdHqCSjGiUZe6aVaqw+eMbFjso63v/pCWm/ dCNg== 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=k+os5gDhRvIJwJKlqJ4NyXeZPn6kmZ4HJ+gX04pZJx4=; b=S98Mqe6xds1I4eJoik8Ktkte6ssuawnDIfpd9oQfKYN5a4fH9KWeQqGhOr+cAO5Flj nA5y/kt+kYlPfTK2sPtkLkNNoqBA+znekV6AzOlG2WWTjJhZsltGq94izZITNoK9ciWd 3ATnzRXwD/SHOXhLr7koe8eY1O3NkML2aggFx5Mu70jPE6cCujptkM3GafXETety7GN6 pgN1hirnK+tkrjSTuYMY/H0HU7/zC5A+I9ooOSDDehwMD9D3C7sYzbKoUtg6fYehWVzG 1lbl2Wkejz0aUg+4NC8IBMh0TDFzsgm3Gav0zNauggagUca9/yAOqyMfPQrCRBgAVNGa dmPw== X-Gm-Message-State: ALKqPwfQHM3XvZCSSQGHT9qO4SFp89y8kEmcC0pa7zUq35U1aaUsBq4C vnFQF2fvkTbxiq0HtmhOxsYjuw== X-Received: by 2002:a17:902:b189:: with SMTP id s9-v6mr6756026plr.352.1526592383894; Thu, 17 May 2018 14:26:23 -0700 (PDT) Received: from gmail.com ([2605:e000:1117:c0e3:2e0:1bff:fe70:ea]) by smtp.gmail.com with ESMTPSA id v23-v6sm9332420pfe.166.2018.05.17.14.26.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 14:26:23 -0700 (PDT) Date: Thu, 17 May 2018 11:26:21 -1000 From: Joey Pabalinas To: Linux Kernel Mailing List Cc: Masahiro Yamada , Andrew Morton , Arend van Spriel , Robert Jarzmik , Joey Pabalinas Subject: [PATCH v2] scripts/tags.sh: don't parse `ls` for $ALLSOURCE_ARCHS generation Message-ID: <20180517212621.i6ljgrcfhhadrkij@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nmt45bq3vtii2hpn" 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 --nmt45bq3vtii2hpn 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; a subshell is implied by $(), 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..a4b089aa35efbc0a13 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 --nmt45bq3vtii2hpn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKlZXrihdNOcUPZTNruvLfWhyVBkFAlr9830ACgkQruvLfWhy VBmEyRAAxvIuQ/LVioeCJHeaHRIV9XEF8HbBDp630v+tREr9iXBjHOL5FWfyfA/3 bYk0+DCNCRYR4pTdoe0oyF5QmxwpdwdFiatQRTo8/r/J5+sXTsiOCUCadwomBczc 3S41xLfbmu4OajL+szz/85SlGyqX84c3MbOpiVTyRbh2GDPtfPg13ZPfcA/GYtuY ttj45GvPemjx9oHCo6gZh93/wGShktM1M1KxzLiVngYvNdsot6J8AKm3Edb+VQpA XvDxVuniCAMLs86iQxizOgTUHL5owTMWcIOGiIKIf5bCjJwSsZjVqpgz2bkx0Kl1 vsOBKJxuq++oYDM3VwtaFJMdOgbbZilff+43Cf3HKv81bMCGBnXQGtRVVvwi/Cr4 7Rl1rDJn3IhL5HbPoIsX7q+cpGtMzEq9J2Kx3kEnxe0PrgkAJMVv0DfSWNz5bRsp e2nu5Q4n+QNDzZklpoKJw35pYjZfj4U+hwS4SloCHF8RS/9U6EODrNMpidoXx98D p1WqL187QGyuhSBGir72CF0MrrCDFvXA3x+ISK0oSDjJUikP7MNBkMspk8F+hexD +os8Ol+PBhixa/6xUXfHY2uJorAFIw2YmkElK2o7v95cmXVlfSJR/5AUQUoNj/Eq 5AQ6kkk8eb9LHt9ZNtaR31LsDnVXIzM7l9jyaiK5ynHJr/UluSw= =2lV5 -----END PGP SIGNATURE----- --nmt45bq3vtii2hpn--