From 99bccaae13b38eeb58c234e48386b2898845f2a1 Mon Sep 17 00:00:00 2001 From: richiethomas Date: Wed, 18 Oct 2017 17:44:09 -0400 Subject: [PATCH] Remove /cask/ from readall file filter --- Library/Homebrew/cmd/readall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb index 0fa1f7c078..f9cc50a9b7 100644 --- a/Library/Homebrew/cmd/readall.rb +++ b/Library/Homebrew/cmd/readall.rb @@ -14,7 +14,7 @@ module Homebrew def readall if ARGV.include?("--syntax") scan_files = "#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb" - ruby_files = Dir.glob(scan_files).reject{|file| file =~ /vendor|cask/ } + ruby_files = Dir.glob(scan_files).reject{|file| file.include? '/vendor/' } Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files) end