aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-01-02 11:11:26 +0100
committerMike McQuaid2015-01-02 10:36:36 +0000
commit2e37af87683befdf9bf4b2a45efd09c3607b58ec (patch)
treeed9f1b5880fea111f2b9cd79b8914c2ea01f2d9e /Library/Homebrew/cmd
parent9442f7e8d75e3e80ad67f315f57885c5c17d0a54 (diff)
downloadhomebrew-2e37af87683befdf9bf4b2a45efd09c3607b58ec.tar.bz2
audit: system check fixed for multiple arguments
Closes #35459. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-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}` "