diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 7d70ad053..bf478e2f5 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -542,6 +542,14 @@ class FormulaAuditor method = $2 problem "Use the `#{method}` Ruby method instead of `system #{system}`" end + + if @strict + if line =~ /system (["'][^"' ]*\s[^"' ]*["'])/ + bad_system = $1 + good_system = bad_system.gsub(" ", "\", \"") + problem "Use `system #{good_system}` instead of `system #{bad_system}` " + end + end end def audit_conditional_dep(dep, condition, line) |
