aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-02 11:11:26 +0100
committerMike McQuaid2015-01-02 10:36:36 +0000
commit81986ee7a75befabd0e4998568349163049b843b (patch)
tree4d67a47040f629d8ed90c8327f06b72687ba6607 /Library
parent1e96c6fec4b449f1357744404d0cc62125db6888 (diff)
downloadbrew-81986ee7a75befabd0e4998568349163049b843b.tar.bz2
audit: system check fixed for multiple arguments
Closes Homebrew/homebrew#35459. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-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 b15e8361e..8b2de4ba6 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -552,7 +552,7 @@ class FormulaAuditor
end
if @strict
- if line =~ /system (["'][^"' ]*\s[^"' ]*["'])/
+ if line =~ /system (["'][^"' ]*(?:\s[^"' ]*)+["'])/
bad_system = $1
good_system = bad_system.gsub(" ", "\", \"")
problem "Use `system #{good_system}` instead of `system #{bad_system}` "