mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
checkdeps.sh: support unusual git version strings (for OS X et. al.) (#3512)
This commit is contained in:
parent
8562b22823
commit
cde6496172
@ -144,7 +144,8 @@ assert_check_golang_env() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert_check_deps() {
|
assert_check_deps() {
|
||||||
installed_git_version=$(git version | awk '{print $NF}')
|
# support unusual Git versions such as: 2.7.4 (Apple Git-66)
|
||||||
|
installed_git_version=$(git version | perl -ne '$_ =~ m/git version (.*?)( |$)/; print "$1\n";')
|
||||||
if ! check_minimum_version "${GIT_VERSION}" "${installed_git_version}"; then
|
if ! check_minimum_version "${GIT_VERSION}" "${installed_git_version}"; then
|
||||||
echo "ERROR"
|
echo "ERROR"
|
||||||
echo "Git version '${installed_git_version}' not supported."
|
echo "Git version '${installed_git_version}' not supported."
|
||||||
|
Loading…
Reference in New Issue
Block a user