Skip to content

Commit 991b78f

Browse files
rddunlapmasahir0y
authored andcommitted
scripts: setlocalversion: fix a bashism
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: 38b3439 ("setlocalversion: update mercurial tag parsing") Signed-off-by: Randy Dunlap <[email protected]> Cc: Mike Crowe <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 85f0ae7 commit 991b78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/setlocalversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ scm_version()
9393
# Check for mercurial and a mercurial repo.
9494
if test -d .hg && hgid=`hg id 2>/dev/null`; then
9595
# Do we have an tagged version? If so, latesttagdistance == 1
96-
if [ "`hg log -r . --template '{latesttagdistance}'`" == "1" ]; then
96+
if [ "`hg log -r . --template '{latesttagdistance}'`" = "1" ]; then
9797
id=`hg log -r . --template '{latesttag}'`
9898
printf '%s%s' -hg "$id"
9999
else

0 commit comments

Comments
 (0)