]> granicus.if.org Git - icinga2/commitdiff
Made git_version.sh more Solaris-friendly.
authorGunnar Beutner <gunnar@beutner.name>
Fri, 25 May 2012 18:45:19 +0000 (20:45 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Fri, 25 May 2012 18:46:12 +0000 (20:46 +0200)
git_version.sh

index 0852b857fa9444a3086c7de69b05bde30bb53e86..bea316d2f14b4c6a161523ec62cbff7912935a00 100644 (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.
\ No newline at end of file
+# THE END.