diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/readall.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb index 886428c90..a2447c0c8 100644 --- a/Library/Homebrew/cmd/readall.rb +++ b/Library/Homebrew/cmd/readall.rb @@ -11,7 +11,11 @@ module Homebrew def readall if ARGV.delete("--syntax") ruby_files = Queue.new - Dir.glob("#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb").each do |rb| + scan_files = %W[ + #{HOMEBREW_LIBRARY}/*.rb + #{HOMEBREW_LIBRARY}/Homebrew/**/*.rb + ] + Dir.glob(scan_files).each do |rb| next if rb.include?("/vendor/") ruby_files << rb end |
