mirror of https://github.com/Icinga/icinga2.git
Made git_version.sh more Solaris-friendly.
This commit is contained in:
parent
0527ff012a
commit
041caeeb92
|
@ -156,9 +156,8 @@ EOF
|
||||||
|
|
||||||
# Detect git tool (should work with old and new git versions)
|
# Detect git tool (should work with old and new git versions)
|
||||||
git_found=yes
|
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"
|
git_found="'$GIT' not found"
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
# If git_found=yes, we can now use $() substitutions (as git does). Hooray!
|
# If git_found=yes, we can now use $() substitutions (as git does). Hooray!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue