aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-11-05 15:35:29 +0000
committerGitHub2017-11-05 15:35:29 +0000
commit265797bf9e2d4762fd22fd6fc3223ecdd68cb56d (patch)
tree173970a6ee288e63460438461481f5712676dba3 /Library/Homebrew
parentc3006f0f121b44baa7acb5e2a023dfd96e582e7a (diff)
parenta7d74e0f538fbf3e6ee8ad8131cf98c4cb48a728 (diff)
downloadbrew-265797bf9e2d4762fd22fd6fc3223ecdd68cb56d.tar.bz2
Merge pull request #3417 from MikeMcQuaid/curl-unset-ssl-cert
curl: unset SSL_CERT_FILE.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/utils/curl.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb
index 7807d2034..eaa81352c 100644
--- a/Library/Homebrew/utils/curl.rb
+++ b/Library/Homebrew/utils/curl.rb
@@ -34,7 +34,11 @@ def curl_args(*extra_args, show_output: false, user_agent: :default)
end
def curl(*args)
- safe_system(*curl_args(*args))
+ # SSL_CERT_FILE can be incorrectly set by users or portable-ruby and screw
+ # with SSL downloads so unset it here.
+ with_env SSL_CERT_FILE: nil do
+ safe_system(*curl_args(*args))
+ end
end
def curl_download(*args, to: nil, continue_at: "-", **options)