From 2e37af87683befdf9bf4b2a45efd09c3607b58ec Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Fri, 2 Jan 2015 11:11:26 +0100 Subject: audit: system check fixed for multiple arguments Closes #35459. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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}` " -- cgit v1.2.3