PR feedback- replace '#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb' with '#{HOMEBREW_LIBRARY_PATH}/**/*.rb'

This commit is contained in:
richiethomas 2017-10-18 18:20:30 -04:00
parent 99bccaae13
commit e5e84eec7d

View File

@ -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