diff options
| author | Mike McQuaid | 2017-09-16 12:41:08 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-09-16 12:41:08 +0100 |
| commit | ffdda0eb9f4a2e56366e8c665d147d9be637f6f4 (patch) | |
| tree | 181e817e0621ee5f17ce7f274971fb8f6d45494c /Library/Homebrew/brew.sh | |
| parent | c0063bb827ffa9cd537a0ca107aa05ca1323393c (diff) | |
| download | brew-ffdda0eb9f4a2e56366e8c665d147d9be637f6f4.tar.bz2 | |
Tweaks for older Mac OS X versions.
- `brew update` should try to install `curl` before `git` on older
versions of Mac OS X where it is needed for accessing modern SSL
certificates.
- We don't need an HTTP mirror for `git` because `curl` will already be
installed before it is downloaded.
- Don't recommend GCC on Mac OS X versions where it can't be built with
the default system compiler.
- Start using the Homebrew `curl` on Mac OS X versions where it is
needed as soon as it is installed.
Diffstat (limited to 'Library/Homebrew/brew.sh')
| -rw-r--r-- | Library/Homebrew/brew.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index c40ce8bf7..66908925c 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -105,7 +105,14 @@ then HOMEBREW_OS_USER_AGENT_VERSION="Mac OS X $HOMEBREW_MACOS_VERSION" printf -v HOMEBREW_MACOS_VERSION_NUMERIC "%02d%02d%02d" ${HOMEBREW_MACOS_VERSION//./ } - if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "100900" && + if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "101000" ]] + then + HOMEBREW_SYSTEM_CURL_TOO_OLD="1" + fi + + # The system Curl is too old for some modern HTTPS certificates on + # older macOS versions. + if [[ -n "$HOMEBREW_SYSTEM_CURL_TOO_OLD" && -x "$HOMEBREW_PREFIX/opt/curl/bin/curl" ]] then HOMEBREW_CURL="$HOMEBREW_PREFIX/opt/curl/bin/curl" |
