Use standard curl progress output in verbose mode
Closes Homebrew/homebrew#26818.
This commit is contained in:
parent
9b8cff1484
commit
8d4d56c8db
@ -136,7 +136,10 @@ def curl *args
|
|||||||
curl = Pathname.new '/usr/bin/curl'
|
curl = Pathname.new '/usr/bin/curl'
|
||||||
raise "#{curl} is not executable" unless curl.exist? and curl.executable?
|
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
|
# See https://github.com/Homebrew/homebrew/issues/6103
|
||||||
args << "--insecure" if MacOS.version < "10.6"
|
args << "--insecure" if MacOS.version < "10.6"
|
||||||
args << "--verbose" if ENV['HOMEBREW_CURL_VERBOSE']
|
args << "--verbose" if ENV['HOMEBREW_CURL_VERBOSE']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user