From: Sean Bright Date: Tue, 1 Feb 2022 16:09:58 +0000 (-0500) Subject: build_tools/make_version: Fix bashism in comparison. X-Git-Tag: 19.2.0-rc1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b4531051bc74bc7b849804f475c429e6a2df290;p=thirdparty%2Fasterisk.git build_tools/make_version: Fix bashism in comparison. In POSIX sh (which we indicate in the shebang), there is no == operator. Change-Id: Ic03d38214d14cdf329b0ba272279a815bb532965 --- diff --git a/build_tools/make_version b/build_tools/make_version index 6ef7b2941d..aefe6b1c83 100755 --- a/build_tools/make_version +++ b/build_tools/make_version @@ -101,7 +101,7 @@ elif [ -d ${1}/.git ]; then 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