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.