diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index cdd8eaddf..0ebe7b12a 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -428,6 +428,13 @@ class FormulaAuditor %r[^http://code\.google\.com/] problem "Please use https:// for #{homepage}" end + + return unless @online + begin + nostdout { curl "--connect-timeout", "15", "-IL", "-o", "/dev/null", homepage } + rescue ErrorDuringExecution + problem "The homepage is not reachable (curl exit code #{$?.exitstatus})" + end end def audit_github_repository |
