Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2230237ybp; Sat, 5 Oct 2019 08:06:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8e/LoUQCe6f1qo/fBlYMKym2eyMrqpuNncFCkmgpikgOhwqkYf0PA+gc8lQ5YZJYdfmeN X-Received: by 2002:a17:906:79ca:: with SMTP id m10mr16662659ejo.292.1570287980193; Sat, 05 Oct 2019 08:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570287980; cv=none; d=google.com; s=arc-20160816; b=OvMPdpZ6yKRgFCvml6+/vU+eyyKYzpNFgn98JB0eXU5eh7rvAsPW70cVaeLQmtqYdw Cj80RmyWfM2FVKNA7UeINAa4qkcgKfJORsB+wzCE+gUS4C9yXPCM42kfsp10SPkJMJkm S+5bNdEim+1NY5N2I6xrhUhTs8xR6YxdUSnyA4L+umafYnmZMOE0eb6aNfcFRF2bCGDp ogWo6NqB2gDmSG77cyiA8136+M2h/BmCI1IZ/IClOD1Wv0mmbB58qPi0hNlE7Y1Jxq4F Ut/hvsdeCHRhSc7s2JyhnKxIn5RHZhDxvBsPDEOJZS1QKn6O/d3/n3wpRYzHSNE+7L/A K2Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject:cc :from:to:dkim-signature; bh=5rADLYO7eeJAfGALC4YPyOxaJUx0EtborHdGGdhmDlM=; b=px+778xCX5HcCplKSOsZA0cC2NS8fBbEvZeiF0XgTnYurLkQ6Cmr+C1HUYMsYmZclV z64naQQop54DCw22Nuc+YPt3A+LYeKn17b8wVvJ/duJNnFnsCfZP79ZCsWGRRKWDMCfL KHaFJKCT9Kh+ZZw158exQybpM86wxCK4AJJ69DtOWWlc3LwdQLtQ7QW3xFPEYMi0lXcx 44V8tn60n3Vh0GQ0Y+AuOlf/vKaXfSV9IjWr9dQPMazcONjTXfRU26VBJwd4xzo5eDW+ rgANeqlsWfGOlMxYeuHtxAWhruWvNGsa2LIIPNK+x6ZVDCz0oSpDK1aOVyyk61ZPYdnB 9pEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (dns failure for signature) header.i=@infradead.org header.s=bombadil.20170209 header.b=fyC8YOtF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n19si5354015edo.172.2019.10.05.08.05.54; Sat, 05 Oct 2019 08:06:20 -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=temperror (dns failure for signature) header.i=@infradead.org header.s=bombadil.20170209 header.b=fyC8YOtF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728686AbfJEPCB (ORCPT + 99 others); Sat, 5 Oct 2019 11:02:01 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:56744 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbfJEPCB (ORCPT ); Sat, 5 Oct 2019 11:02:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:Cc:From:To:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5rADLYO7eeJAfGALC4YPyOxaJUx0EtborHdGGdhmDlM=; b=fyC8YOtF809gi+tUnvuuqW5LI 2vDEZq2xRlgOQDj6FqI+kA3yNV4AEsZSMEAYA8jKQwX8tRYpzzRK1KNH2WQ5KeqteJWGHbEfnQtQU q8K3HCJ1DvcxCwsbJrHFpQLxJwPrbW9zk9LSjQM0nfC/oPKQFRp8FvnpUYtle9oYV9fEtIqw601y1 35/W9isd5DzL3f998x/a+uqPVnEPNPN7vQuF1FiDi6ScEdgExuhElr5ukdM+N+Uq0pXcqLfOqzw4n tF2d5+r5Fvbz9GhfWKU6+lOonVnTEtH535/r/Tgx6BcDyL5GnjPDw6ZbC3W81y+tJ7WdUkmv77H/p 1b2b5vFsA==; Received: from [2601:1c0:6280:3f0::9ef4] by bombadil.infradead.org with esmtpsa (Exim 4.92.2 #3 (Red Hat Linux)) id 1iGlZI-0003MA-Mh; Sat, 05 Oct 2019 15:02:00 +0000 To: linux-kbuild , Masahiro Yamada From: Randy Dunlap Cc: Mike Crowe , LKML Subject: [PATCH] scripts: setlocalversion: fix a bashism Message-ID: Date: Sat, 5 Oct 2019 08:01:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap Fix bashism reported by checkbashisms by using only one '=': possible bashism in scripts/setlocalversion line 96 (should be 'b = a'): if [ "`hg log -r . --template '{latesttagdistance}'`" == "1" ]; then Fixes: 38b3439d84f4 ("setlocalversion: update mercurial tag parsing") Signed-off-by: Randy Dunlap Cc: Mike Crowe --- Does anyone still use hg for kernel development? scripts/setlocalversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- lnx-54-rc1.orig/scripts/setlocalversion +++ lnx-54-rc1/scripts/setlocalversion @@ -93,7 +93,7 @@ scm_version() # Check for mercurial and a mercurial repo. if test -d .hg && hgid=`hg id 2>/dev/null`; then # Do we have an tagged version? If so, latesttagdistance == 1 - if [ "`hg log -r . --template '{latesttagdistance}'`" == "1" ]; then + if [ "`hg log -r . --template '{latesttagdistance}'`" = "1" ]; then id=`hg log -r . --template '{latesttag}'` printf '%s%s' -hg "$id" else