aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/readall.rb
diff options
context:
space:
mode:
authorrichiethomas2017-10-18 18:20:30 -0400
committerrichiethomas2017-10-18 18:20:44 -0400
commite5e84eec7d91c5a00949e74da15745204c3ca5d5 (patch)
treed14a3acc815e0f45b55bc64d9223fc23f09b7097 /Library/Homebrew/cmd/readall.rb
parent99bccaae13b38eeb58c234e48386b2898845f2a1 (diff)
downloadbrew-e5e84eec7d91c5a00949e74da15745204c3ca5d5.tar.bz2
PR feedback- replace '#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb' with '#{HOMEBREW_LIBRARY_PATH}/**/*.rb'
Diffstat (limited to 'Library/Homebrew/cmd/readall.rb')
-rw-r--r--Library/Homebrew/cmd/readall.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb
index f9cc50a9b..c123eba79 100644
--- a/Library/Homebrew/cmd/readall.rb
+++ b/Library/Homebrew/cmd/readall.rb
@@ -13,8 +13,8 @@ module Homebrew
def readall
if ARGV.include?("--syntax")
- scan_files = "#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb"
- ruby_files = Dir.glob(scan_files).reject{|file| file.include? '/vendor/' }
+ scan_files = "#{HOMEBREW_LIBRARY_PATH}/**/*.rb"
+ ruby_files = Dir.glob(scan_files).reject{|file| file =~ /vendor|cask/ }
Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files)
end