mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user