diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 3a4429c86f1f5a7a12b275ceef57ebdb5cc4e573..db7973eb3cebd30c172d786f42cf4706780dabe9 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