aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2014-03-05 07:53:19 -0800
committerAdam Vandenberg2014-03-05 07:53:19 -0800
commitad4f3b6faedef6f93f08dde454ce36f74e0c0197 (patch)
treee4db66b05751f636d97b8de4a7975c5437577f15 /Library/Homebrew/cmd
parent9ae579fdf25445fb6c79c15bd09138f32a6296b3 (diff)
downloadhomebrew-ad4f3b6faedef6f93f08dde454ce36f74e0c0197.tar.bz2
audit: find env/export as a full word, not as a prefix
Closes #27219.
Diffstat (limited to 'Library/Homebrew/cmd')
-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