Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4143977imm; Thu, 17 May 2018 23:27:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpj0Nf/D7ygp+d8nF7mbBQMOgNi0nxIBYGudJhJJHwocxwbh567wesCUxK7sz2yvq0omXbO X-Received: by 2002:a17:902:aa94:: with SMTP id d20-v6mr8485531plr.323.1526624857106; Thu, 17 May 2018 23:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526624857; cv=none; d=google.com; s=arc-20160816; b=km5hmyDqJNbdkGXbt2WQeDFR/1GAXifWLJM0mLm/zOgw0KD6igsq/UVdo0CT6K2cT7 EMvPS5N1GebzjO6PbANhLDThP/4mBSVuj++1Ic+D79C0II8WnC2lgdMTj0MvSj4AVQcG CxMEsyqQtswkqXPi3X/InmJlMWj//7lubPRtPy6OelfTUb8pBqAmYDqHJejyQ2LtERPL Pjk04VYatg7hMGoNik40A5nN56+Mg4tssWnFGLEeu1B4zEGIc3JmslnTQGPdG2LS6B7f WsW97++n3klUEnHryO2TVx0iW9f1e+Z8r9AQUX+AwUm9CDM6Qlg2WIktBUdfzWRGiNM3 /rlQ== 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=71okJ0se51V0PdCYO6UCoaUiS3KeWGUFhACjIrP8aJE=; b=MsoP5HH2LJnFX/IL6e/j87C0zHJjI65thiRiXqmWX0EZoCI2CWltFzZSKY4QtqiovU GDBIAgBC48eb6h3P33vRLfxIINa5bd99fSczALZBny958XvLdkjwL8HIu3WloI0CHP89 IvrxYhdf/nlElWUILcSIuD5FowuC4Kq2O/56Ir+/LYH8gZmcnL86TDK6+O+XorgcurHd tNADYfN28ePBbM45M81kOSBFExPfFjjvab/Pe+MnvksFyqiqqxOfPJSPbK58FmZ41jTL +B3VrZ0nX0DBsuvQiRWlo95VdYVqMtzr7F47w3G9Jp5UO/eX+DevV7zPWOoAmgid22or icIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ayt67hAz; 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 f28-v6si7646150plj.255.2018.05.17.23.27.22; Thu, 17 May 2018 23:27:37 -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=Ayt67hAz; 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 S1751497AbeERGZ6 (ORCPT + 99 others); Fri, 18 May 2018 02:25:58 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35723 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750957AbeERGZ5 (ORCPT ); Fri, 18 May 2018 02:25:57 -0400 Received: by mail-pg0-f67.google.com with SMTP id 11-v6so1239448pge.2 for ; Thu, 17 May 2018 23:25:56 -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=71okJ0se51V0PdCYO6UCoaUiS3KeWGUFhACjIrP8aJE=; b=Ayt67hAzKmmBpC1yar3XXFmZq8RXXUX/JDiJCsSGAF0AKgLlcV4Cg1Mmo9N0xCXl4q rpBcofGgTH2UbAJ3kHqt/BTH82e/X/30hDWWGChGTuIVDEMYBPPy5SUqyIeX2esoP6nR TtDtQF36P/ZJvosr44lFgAJIKybkCxElMRsg5/g+3F4dfOjV8pD+dfmfYKrzSDR89lia 9eFpLlkmtDA1AwbMF+1M4apAosF6BO+Qg7/2jn5iZsXAIEsx8LWDvvTHcFWgOOD+P35X bESLaJ53cE5J2vF9dsYJUzEFRTc8oaj9JmMIhaAhaC8X4gOwKrrmcRe3pwen+fB5MuGp emFg== 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=71okJ0se51V0PdCYO6UCoaUiS3KeWGUFhACjIrP8aJE=; b=AuuGy1HNERUkvTj6Kg1ievHw3zSTFFhKRSeLCHHFn75yzJGzE95np2DA+BUQOM2H9m SV/AzCClcEMlRIsmCFRq6TEBcCSAx5wCWxnDDUViRRHEjhz7S17ambZdsZpmyOvfV/ev 2JGk3zfpxe96eDxRiFzbUkh+f04jHKLpSmlo3gK0crVF3J+tXQTE8Bpf7gxNV4MFxtUj q60Pzwgml8e7JxT2GwffLX8ZIFkXPvrYOOjDAPv4nem9BS6o7plyzal1YF7OVa+jvGgH /tNcWpebezYNwqV8Yd7dIw0GIgI1s2EiTHPGcj2QjltVlhmc+QEl2IwedwJ5AKatm4sr bIaw== X-Gm-Message-State: ALKqPwc18aIlvsuZSltW+PAb+9tR3Pn3UfINH+T7mi/+RVFl8Mznq0jE xxwow6lKFJPT+rvfxLbUU9Q= X-Received: by 2002:a62:8b07:: with SMTP id j7-v6mr8100346pfe.28.1526624756566; Thu, 17 May 2018 23:25:56 -0700 (PDT) Received: from gmail.com ([2605:e000:1117:c0e3:2e0:1bff:fe70:ea]) by smtp.gmail.com with ESMTPSA id p1-v6sm12361708pfp.137.2018.05.17.23.25.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 23:25:55 -0700 (PDT) Date: Thu, 17 May 2018 20:25:53 -1000 From: Joey Pabalinas To: Masahiro Yamada Cc: Andrew Morton , Linux Kernel Mailing List , Arend van Spriel , Robert Jarzmik , Joey Pabalinas Subject: [PATCH v3] scripts/tags.sh: don't parse `ls` for $ALLSOURCE_ARCHS generation Message-ID: <20180518062553.kodjjrlrosrg7vfq@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zg4dzz4qm2b2imuj" 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 --zg4dzz4qm2b2imuj 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 (Kconfig is removed as it isn't an architecture); a subshell is implied by $(), so `cd` doesn't affect the current working directory. Signed-off-by: Joey Pabalinas 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 78e546ff689c2d5f40..e4aba2983f6272fc44 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -29,14 +29,12 @@ 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 *)" + ALLSOURCE_ARCHS=3D"${ALLSOURCE_ARCHS/Kconfig}" } =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 --zg4dzz4qm2b2imuj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKlZXrihdNOcUPZTNruvLfWhyVBkFAlr+cfEACgkQruvLfWhy VBnPYBAApdgT3tXeanYkjzPbfMrg++P966Rd6jiZoErPJQeoPk/iVoZncHMl4Zt7 99RytLnmTJqxRb7cxfJmGi3rrTKCI30ol3B61ucrTTpyIM7Vi6xVMVh6C8kA9Fls mR6+zMk7jP34BISmFSQAKqHDKl9TZsFjrO8CEqxFlFvyhH0udMcAm0xAt1gAdHj9 1r6Nd1V+EGm9Pi/XgdFPleUXdwDJHFop2A3r/OPV2CyyW4RwFomlI3DNFt4xyQgf Jq7hq3yJHQeyJ7yph5QeC+v0tiekvTAs2GzGPF6WCyZdU89og8oZWIWi8T+s2HBl DOmeSKjxBjyntbigD+tV5WoZfqDFw4s+v8N7bRm4Geod7KaEHsKRKnWU4KDsnafG IPrmF8zvjwmUhj8gOXxw0pBG0yqeEiHeh6xqJ7ujHTX6MT3RAp3BxjzM6GLraVm4 Xshsmzl7qhb4e+RQDRF1E73ou7Mk6mqRYjGD8mwn84tLJvLqhoBGNtQVxF20GPoV 9ZjubHY/bRnKPilBAU1B9zUPjVl/6GqpdDUhlk7gfP79fi5PbQJFCP72gWAIoRLH pNNk7RpG0l+3HkPljR0iB0y4mVrGGemFXPjURZrStn/uPDiL4sPg9Tawpv0uDNSh b/N9qrU8V6ux4q7FA+ZD+xW7y5OS2xzQeaJoQSoaAGXz8z4Rc7Q= =5Jcd -----END PGP SIGNATURE----- --zg4dzz4qm2b2imuj--