audit: ...or quoted

This commit is contained in:
Adam Vandenberg 2014-03-05 07:53:53 -08:00
parent d55dc8d01e
commit 7e45cbafca

View File

@ -424,7 +424,7 @@ class FormulaAuditor
problem "Use \"\#{ENV.cxx}\" instead of hard-coding \"#{$3}\""
end
if line =~ /system\s+['"](env|export)\s+/
if line =~ /system\s+['"](env|export)(\s+|['"])/
problem "Use ENV instead of invoking '#{$1}' to modify the environment"
end