From 041caeeb92ffaea9b3f8af7d104da64698dfe2cf Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 25 May 2012 20:45:19 +0200 Subject: [PATCH] Made git_version.sh more Solaris-friendly. --- git_version.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/git_version.sh b/git_version.sh index 0852b857f..bea316d2f 100644 --- a/git_version.sh +++ b/git_version.sh @@ -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. \ No newline at end of file +# THE END.