aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorrichiethomas2017-10-18 17:44:09 -0400
committerrichiethomas2017-10-18 17:44:09 -0400
commit99bccaae13b38eeb58c234e48386b2898845f2a1 (patch)
tree2d048f0ea1d57a1d9fbf6edce7c39ac4e1d26c77 /Library
parentdfaaada8b6cf09fde47810c9dff79b8165b07ca0 (diff)
downloadbrew-99bccaae13b38eeb58c234e48386b2898845f2a1.tar.bz2
Remove /cask/ from readall file filter
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/readall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb
index 0fa1f7c07..f9cc50a9b 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