Don’t pass --fail for curl_output.
This commit is contained in:
parent
fd477365b5
commit
d9587a8b5e
@ -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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user