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)
|
||||
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.
|
||||
# THE END.
|
||||
|
|
Loading…
Reference in New Issue