diff options
| author | Adam Vandenberg | 2014-03-05 07:53:19 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-05 07:53:19 -0800 |
| commit | d55dc8d01e61afdb6d3ec3eb32af3d6d5ed9879c (patch) | |
| tree | db0489afe78916f859e0f56a517ede985c28cc36 /Library/Homebrew | |
| parent | 21b2fdface67c8fc33e9a6ccc587e8bbadd7ec5d (diff) | |
| download | brew-d55dc8d01e61afdb6d3ec3eb32af3d6d5ed9879c.tar.bz2 | |
audit: find env/export as a full word, not as a prefix
Closes Homebrew/homebrew#27219.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 |
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 |
