aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 4ca541a75..cb7cb2510 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -129,6 +129,10 @@ def audit_formula_text name, text
problems << " * Use \"\#{ENV.cxx}\" instead of hard-coding \"#{$3}\""
end
+ if text =~ /system\s+['"](env|export)/
+ problems << " * Use ENV instead of invoking '#{$1}' to modify the environment"
+ end
+
return problems
end