From: Gunnar Beutner Date: Fri, 25 May 2012 18:45:19 +0000 (+0200) Subject: Made git_version.sh more Solaris-friendly. X-Git-Tag: v0.0.1~489 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=041caeeb92ffaea9b3f8af7d104da64698dfe2cf;p=icinga2 Made git_version.sh more Solaris-friendly. --- 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.