brew readall --syntax: skip vendor files

This commit is contained in:
Xu Cheng 2015-08-03 21:14:20 +08:00
parent ea5840ed61
commit 1af6ffa950

View File

@ -12,6 +12,7 @@ module Homebrew
if ARGV.delete("--syntax")
ruby_files = Queue.new
Dir.glob("#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb").each do |rb|
next if rb.include?("/vendor/")
ruby_files << rb
end