Made git_version.sh more Solaris-friendly.

This commit is contained in:
Gunnar Beutner 2012-05-25 20:45:19 +02:00
parent 0527ff012a
commit 041caeeb92
1 changed files with 2 additions and 3 deletions

View File

@ -156,9 +156,8 @@ EOF
# Detect git tool (should work with old and new git versions)
git_found=yes
if [ "x$GIT" = "xgit" ] && [ x`which $GIT 2>/dev/null` = "x" ]; then
if [ "x$GIT" = "xgit" ] && [ x`command -v $GIT 2>/dev/null` = "x" ]; then
git_found="'$GIT' not found"
break
fi
# If git_found=yes, we can now use $() substitutions (as git does). Hooray!
@ -356,4 +355,4 @@ then
fi
fi
# THE END.
# THE END.