diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-02-11 17:51:59 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-02-11 17:51:59 +0000 |
commit | 8d242eecba524b5b099fc907bbecfdc7ef3e172f (patch) | |
tree | 9e8e77949b9cc6f4f935c9cd5aef112fb07664d7 | |
parent | 72806e6d9966f46c4de58bce985e31e6e53ceef8 (diff) |
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/
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9408
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@9758 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rwxr-xr-x | build_tools/make_version | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build_tools/make_version b/build_tools/make_version index 6946831..e61580f 100755 --- a/build_tools/make_version +++ b/build_tools/make_version @@ -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"` if [ -z "$SVN_REV" ]; then VERSION=`git describe --long --always --tags --dirty=M 2> /dev/null` - if [[ $? -ne 0 ]]; then - if [[ "`git ls-files -m | wc -l`" != "0" ]]; then + if [ $? -ne 0 ]; then + if [ "`git ls-files -m | wc -l`" != "0" ]; then MODIFIED="M" fi # Some older versions of git do not support all the above @@ -74,7 +74,7 @@ elif [ -d .git ]; then BRANCH=0 TEAM=0 - if [[ "`git ls-files -m | wc -l`" != "0" ]]; then + if [ "`git ls-files -m | wc -l`" != "0" ]; then MODIFIED="M" fi |