aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMartin Afanasjew2016-04-20 01:22:50 +0200
committerMartin Afanasjew2016-04-22 00:47:43 +0200
commitb5c27bb7e5f0e63fd7f4a451d7824b2ba0ac39ef (patch)
tree22d4dee89d5d735b81d9176f273595a1a9e00e97 /Library/Homebrew/cmd
parent30c0d97e5c2c661296360340b7002bd7560f0253 (diff)
downloadbrew-b5c27bb7e5f0e63fd7f4a451d7824b2ba0ac39ef.tar.bz2
readall: also check 'brew.rb' for issues
Closes #119. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/readall.rb6
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