From 9b4c99292b6f4543fe04db4d85150e6f9f261ca1 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 7 Dec 2011 19:09:00 -0600 Subject: 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 --- Library/Homebrew/utils.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Homebrew/utils.rb') 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 -- cgit v1.2.3