brew-audit - yet another path shortcut check

This commit is contained in:
Adam Vandenberg 2010-09-08 09:22:48 -07:00
parent b98d8366bc
commit a7e902ce78

View File

@ -62,6 +62,10 @@ def audit_formula_text text
problems << " * \"#{$1}\" should be \"\#{#{$3}}\""
end
if text =~ %r[((\#\{share\}/(man)))[/'"]]
problems << " * \"#{$1}\" should be \"\#{#{$3}}\""
end
if text =~ %r[(\#\{prefix\}/share/(info|man))]
problems << " * \"#{$1}\" should be \"\#{#{$2}}\""
end