From a7e902ce7867c0b7d3b99b4f0ad1a42f70bee0a2 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 8 Sep 2010 09:22:48 -0700 Subject: brew-audit - yet another path shortcut check --- Library/Contributions/examples/brew-audit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb index 4d2c08e26..24ab853c9 100755 --- a/Library/Contributions/examples/brew-audit.rb +++ b/Library/Contributions/examples/brew-audit.rb @@ -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 -- cgit v1.2.3