]> git.baikalelectronics.ru Git - kernel.git/commit
scripts: setlocalversion: fix a bashism
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 5 Oct 2019 15:01:59 +0000 (08:01 -0700)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 15 Oct 2019 14:45:07 +0000 (23:45 +0900)
commit9bbdf4492db0f8c9923eda4fa5120b69032dc3ee
tree3435a590fa006446227ea7723bda0370f548b132
parent8cb59f36799d7dbaab19ed98d89f3999fac28992
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: 1f990fea9c02 ("setlocalversion: update mercurial tag parsing")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Mike Crowe <mcrowe@zipitwireless.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/setlocalversion