Skip to content
Snippets Groups Projects
Commit 81986ee7 authored by Baptiste Fontaine's avatar Baptiste Fontaine Committed by Mike McQuaid
Browse files

audit: system check fixed for multiple arguments


Closes Homebrew/homebrew#35459.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 1e96c6fe
No related branches found
No related tags found
No related merge requests found
......@@ -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}` "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment