diff options
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"  | 
