aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Broder-Rodgers2016-12-10 11:10:29 +0000
committerDavid Broder-Rodgers2017-02-20 19:24:13 +0000
commitea440ca3284138ebe3be26d5763f8c6af93749b1 (patch)
tree98bcd5f49fbe1e20dce67e05e35eeda9b6e84d09 /Library
parent7eec6a3a255d7d7ca0c29814345ee9358f6fd300 (diff)
downloadbrew-ea440ca3284138ebe3be26d5763f8c6af93749b1.tar.bz2
Markups to online mirror auditing
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 3a4429c86..db7973eb3 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -1491,9 +1491,9 @@ class ResourceAuditor
return unless @online
urls.each do |url|
begin
- nostdout { curl "--connect-timeout", "15", "-o", "/dev/null", "-r", "0-0", url }
+ nostdout { curl "--connect-timeout", "15", "--output", "/dev/null", "--range", "0-0", url }
rescue ErrorDuringExecution
- problem "The mirror #{u} is not reachable (curl exit code #{$?.exitstatus})"
+ problem "The mirror #{url} is not reachable (curl exit code #{$?.exitstatus})"
end
check_insecure_mirror(url) if url.start_with? "http:"
end