Skip to content
Snippets Groups Projects
Commit c51353e4 authored by Sean Bright's avatar Sean Bright Committed by Joshua Colp
Browse files

build_tools/make_version: Fix bashism in comparison.

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

Change-Id: Ic03d38214d14cdf329b0ba272279a815bb532965
parent 0d53ce35
No related branches found
No related tags found
1 merge request!48asterisk uplift to 18.11.2
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment