aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-18 16:03:44 -0500
committerJack Nagel2014-02-18 16:03:52 -0500
commit8d4d56c8db79fd73803afd1caa726d52d4f605e4 (patch)
tree87be1b308f81ed8170289100d1e6ab513e24acfb /Library
parent9b8cff14846aeec1504f3788f9e65c374bb333d2 (diff)
downloadbrew-8d4d56c8db79fd73803afd1caa726d52d4f605e4.tar.bz2
Use standard curl progress output in verbose mode
Closes Homebrew/homebrew#26818.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 63eeff3fa..ee429073b 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -136,7 +136,10 @@ def curl *args
curl = Pathname.new '/usr/bin/curl'
raise "#{curl} is not executable" unless curl.exist? and curl.executable?
- args = [HOMEBREW_CURL_ARGS, HOMEBREW_USER_AGENT, *args]
+ flags = HOMEBREW_CURL_ARGS
+ flags = flags.delete("#") if ARGV.verbose?
+
+ args = [flags, HOMEBREW_USER_AGENT, *args]
# See https://github.com/Homebrew/homebrew/issues/6103
args << "--insecure" if MacOS.version < "10.6"
args << "--verbose" if ENV['HOMEBREW_CURL_VERBOSE']