use '=' instead of '==' for string comparisons. /bin/bash is ok with this, but

/bin/sh is not.  (issue #5885)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant 2005-12-01 00:43:17 +00:00
parent 48a4c3a24d
commit b994fcae8b
1 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ TEAM=0
REV=`svn info | grep -e 'Last Changed Rev' | awk '{print $4;}'` REV=`svn info | grep -e 'Last Changed Rev' | awk '{print $4;}'`
if [ "${PARTS}" == "trunk" ] if [ "${PARTS}" = "trunk" ]
then then
echo 'trunk'-r${REV} echo 'trunk'-r${REV}
exit 0 exit 0
@ -26,21 +26,21 @@ do
continue continue
fi fi
if [ "${PART}" == "branches" ] if [ "${PART}" = "branches" ]
then then
BRANCH=1 BRANCH=1
RESULT="branch" RESULT="branch"
continue continue
fi fi
if [ "${PART}" == "tags" ] if [ "${PART}" = "tags" ]
then then
BRANCH=1 BRANCH=1
RESULT="tag" RESULT="tag"
continue continue
fi fi
if [ "${PART}" == "team" ] if [ "${PART}" = "team" ]
then then
TEAM=1 TEAM=1
continue continue