[Asterisk-code-review] build_tools/make_version: Fix bashism in comparison. (asterisk[18])

Sean Bright asteriskteam at digium.com
Tue Feb 1 10:12:16 CST 2022


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/17976 )


Change subject: build_tools/make_version: Fix bashism in comparison.
......................................................................

build_tools/make_version: Fix bashism in comparison.

In POSIX sh (which we indicate in the shebang), there is no ==
operator.

Change-Id: Ic03d38214d14cdf329b0ba272279a815bb532965
---
M build_tools/make_version
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/76/17976/1

diff --git a/build_tools/make_version b/build_tools/make_version
index 6ef7b29..aefe6b1 100755
--- a/build_tools/make_version
+++ b/build_tools/make_version
@@ -101,7 +101,7 @@
     SVN_REV=`${GIT} log --pretty=full -1 | sed -n '/git-svn-id:/ s/.*\@\([^ ]*\) .*/\1/p'`
     if [ -z "$SVN_REV" ]; then
         MAINLINE_BRANCH=$(${GIT} config -f .gitreview --get gerrit.basebranch)
-        if [ "x${MAINLINE_BRANCH}" == "x" ] ; then
+        if [ "x${MAINLINE_BRANCH}" = "x" ] ; then
             MAINLINE_BRANCH=$(${GIT} config -f .gitreview --get gerrit.defaultbranch)
         fi
 

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17976
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: Ic03d38214d14cdf329b0ba272279a815bb532965
Gerrit-Change-Number: 17976
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean at seanbright.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220201/d6451614/attachment.html>


More information about the asterisk-code-review mailing list