audit: find env/export as a full word, not as a prefix
Closes Homebrew/homebrew#27219.
This commit is contained in:
parent
21b2fdface
commit
d55dc8d01e
@ -424,7 +424,7 @@ class FormulaAuditor
|
||||
problem "Use \"\#{ENV.cxx}\" instead of hard-coding \"#{$3}\""
|
||||
end
|
||||
|
||||
if line =~ /system\s+['"](env|export)/
|
||||
if line =~ /system\s+['"](env|export)\s+/
|
||||
problem "Use ENV instead of invoking '#{$1}' to modify the environment"
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user