Remove /cask/ from readall file filter
This commit is contained in:
parent
dfaaada8b6
commit
99bccaae13
@ -14,7 +14,7 @@ module Homebrew
|
|||||||
def readall
|
def readall
|
||||||
if ARGV.include?("--syntax")
|
if ARGV.include?("--syntax")
|
||||||
scan_files = "#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb"
|
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)
|
Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user