make_version: '[[' -> '[' since it's not a bash script.

'[[' is a bash construct specifically, yet #!/bin/sh is at the top of the
file.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Review: https://reviewboard.asterisk.org/r/940/

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9408 a0bf4364-ded3-4de4-8d8a-66a801d63aff
This commit is contained in:
Shaun Ruffell 2010-09-24 22:44:41 +00:00
parent 731b5868d4
commit 7872d47517

View File

@ -60,8 +60,8 @@ elif [ -d .git ]; then
SVN_REV=`git log --pretty=full -1 | grep -F "git-svn-id:" | sed -e "s/.*\@\([^\s]*\)\s.*/\1/g"` SVN_REV=`git log --pretty=full -1 | grep -F "git-svn-id:" | sed -e "s/.*\@\([^\s]*\)\s.*/\1/g"`
if [ -z "$SVN_REV" ]; then if [ -z "$SVN_REV" ]; then
VERSION=`git describe --long --always --tags --dirty=M 2> /dev/null` VERSION=`git describe --long --always --tags --dirty=M 2> /dev/null`
if [[ $? -ne 0 ]]; then if [ $? -ne 0 ]; then
if [[ "`git ls-files -m | wc -l`" != "0" ]]; then if [ "`git ls-files -m | wc -l`" != "0" ]; then
MODIFIED="M" MODIFIED="M"
fi fi
# Some older versions of git do not support all the above # Some older versions of git do not support all the above
@ -74,7 +74,7 @@ elif [ -d .git ]; then
BRANCH=0 BRANCH=0
TEAM=0 TEAM=0
if [[ "`git ls-files -m | wc -l`" != "0" ]]; then if [ "`git ls-files -m | wc -l`" != "0" ]; then
MODIFIED="M" MODIFIED="M"
fi fi