From 81986ee7a75befabd0e4998568349163049b843b Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Fri, 2 Jan 2015 11:11:26 +0100 Subject: [PATCH] audit: system check fixed for multiple arguments Closes Homebrew/homebrew#35459. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index b15e8361ef..8b2de4ba6d 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}` "