Don’t pass --fail for curl_output.

This commit is contained in:
Markus Reiter 2017-08-11 12:28:58 +02:00
parent fd477365b5
commit d9587a8b5e

View File

@ -11,7 +11,6 @@ end
def curl_args(*extra_args, show_output: false, user_agent: :default)
args = [
curl_executable.to_s,
"--fail",
"--show-error",
]
@ -25,6 +24,7 @@ def curl_args(*extra_args, show_output: false, user_agent: :default)
end
unless show_output
args << "--fail"
args << "--progress-bar" unless ARGV.verbose?
args << "--verbose" if ENV["HOMEBREW_CURL_VERBOSE"]
args << "--silent" if !$stdout.tty? || ENV["TRAVIS"]