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)
|
def curl_args(*extra_args, show_output: false, user_agent: :default)
|
||||||
args = [
|
args = [
|
||||||
curl_executable.to_s,
|
curl_executable.to_s,
|
||||||
"--fail",
|
|
||||||
"--show-error",
|
"--show-error",
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -25,6 +24,7 @@ def curl_args(*extra_args, show_output: false, user_agent: :default)
|
|||||||
end
|
end
|
||||||
|
|
||||||
unless show_output
|
unless show_output
|
||||||
|
args << "--fail"
|
||||||
args << "--progress-bar" unless ARGV.verbose?
|
args << "--progress-bar" unless ARGV.verbose?
|
||||||
args << "--verbose" if ENV["HOMEBREW_CURL_VERBOSE"]
|
args << "--verbose" if ENV["HOMEBREW_CURL_VERBOSE"]
|
||||||
args << "--silent" if !$stdout.tty? || ENV["TRAVIS"]
|
args << "--silent" if !$stdout.tty? || ENV["TRAVIS"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user