Skip to content
Browse files

audit: check for empty sha256 checksums

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 9d2aebc commit 2b0f50bf747946854c848de6c13bc7b68e2438c3 @jacknagel jacknagel committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 Library/Homebrew/cmd/audit.rb
View
4 Library/Homebrew/cmd/audit.rb
@@ -84,6 +84,10 @@ def audit_formula_text name, text
problems << " * sha1 is empty"
end
+ if text =~ /sha256\s+(\'\'|\"\")/
+ problems << " * sha256 is empty"
+ end
+
# Commented-out depends_on
if text =~ /#\s*depends_on\s+(.+)\s*$/
problems << " * Commented-out dep #{$1}."

0 comments on commit 2b0f50b

Please sign in to comment.
Something went wrong with that request. Please try again.