aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorJack Nagel2011-12-07 19:09:00 -0600
committerJack Nagel2011-12-08 21:04:28 -0600
commit9b4c99292b6f4543fe04db4d85150e6f9f261ca1 (patch)
tree612a0d1c8afc5fac9038d3a473483b588ceb3c08 /Library/Homebrew/utils.rb
parent4cc61cb31ef1b3dec1974f98cd20322fefb31732 (diff)
downloadhomebrew-9b4c99292b6f4543fe04db4d85150e6f9f261ca1.tar.bz2
Introduce HOMEBREW_CURL_VERBOSE
When investigating issues, one might want to see exactly what curl is doing behind the scenes. Setting HOMEBREW_CURL_VERBOSE will cause the '--verbose' flag to be passed to all invocations of curl. Prompted by #8992. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 8eca952de..df23c1387 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -111,6 +111,7 @@ def curl *args
args = [HOMEBREW_CURL_ARGS, HOMEBREW_USER_AGENT, *args]
# See https://github.com/mxcl/homebrew/issues/6103
args << "--insecure" if MacOS.version < 10.6
+ args << "--verbose" if ENV['HOMEBREW_CURL_VERBOSE']
safe_system curl, *args
end