aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2014-03-05 07:53:19 -0800
committerAdam Vandenberg2014-03-05 07:53:19 -0800
commitd55dc8d01e61afdb6d3ec3eb32af3d6d5ed9879c (patch)
treedb0489afe78916f859e0f56a517ede985c28cc36
parent21b2fdface67c8fc33e9a6ccc587e8bbadd7ec5d (diff)
downloadbrew-d55dc8d01e61afdb6d3ec3eb32af3d6d5ed9879c.tar.bz2
audit: find env/export as a full word, not as a prefix
Closes Homebrew/homebrew#27219.
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index c3db8a08a..bd86135eb 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -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