Skip to content
Snippets Groups Projects
Commit d55dc8d0 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

audit: find env/export as a full word, not as a prefix

Closes Homebrew/homebrew#27219.
parent 21b2fdfa
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment