brew.sh: stop if HOMEBREW_GIT_PATH is too old
This commit is contained in:
parent
6ba7ace66a
commit
6455264716
@ -194,7 +194,7 @@ else
|
||||
The version of cURL that you provided to Homebrew using HOMEBREW_CURL_PATH is too old.
|
||||
Minimum required version: ${HOMEBREW_MINIMUM_CURL_VERSION}.
|
||||
Your cURL version: ${curl_name_and_version##* }.
|
||||
Please point Homebrew to cURL version ${HOMEBREW_MINIMUM_CURL_VERSION} or newer
|
||||
Please point Homebrew to cURL ${HOMEBREW_MINIMUM_CURL_VERSION} or newer
|
||||
or unset HOMEBREW_CURL_PATH variable.
|
||||
EOS
|
||||
fi
|
||||
@ -209,7 +209,17 @@ EOS
|
||||
IFS=. read -r major minor micro build extra <<< "${git_version_output##* }"
|
||||
if [[ $(numeric "$major.$minor.$micro.$build") -lt $(numeric "$HOMEBREW_MINIMUM_GIT_VERSION") ]]
|
||||
then
|
||||
HOMEBREW_FORCE_BREWED_GIT="1"
|
||||
if [[ -z $HOMEBREW_GIT_PATH ]]; then
|
||||
HOMEBREW_FORCE_BREWED_GIT="1"
|
||||
else
|
||||
odie <<EOS
|
||||
The version of Git that you provided to Homebrew using HOMEBREW_GIT_PATH is too old.
|
||||
Minimum required version: ${HOMEBREW_MINIMUM_GIT_VERSION}.
|
||||
Your Git version: $major.$minor.$micro.$build.
|
||||
Please point Homebrew to Git ${HOMEBREW_MINIMUM_CURL_VERSION} or newer
|
||||
or unset HOMEBREW_GIT_PATH variable.
|
||||
EOS
|
||||
fi
|
||||
fi
|
||||
|
||||
CACHE_HOME="${XDG_CACHE_HOME:-${HOME}/.cache}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user