PR feedback- replace '#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb' with '#{HOMEBREW_LIBRARY_PATH}/**/*.rb'
This commit is contained in:
parent
99bccaae13
commit
e5e84eec7d
@ -13,8 +13,8 @@ module Homebrew
|
|||||||
|
|
||||||
def readall
|
def readall
|
||||||
if ARGV.include?("--syntax")
|
if ARGV.include?("--syntax")
|
||||||
scan_files = "#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb"
|
scan_files = "#{HOMEBREW_LIBRARY_PATH}/**/*.rb"
|
||||||
ruby_files = Dir.glob(scan_files).reject{|file| file.include? '/vendor/' }
|
ruby_files = Dir.glob(scan_files).reject{|file| file =~ /vendor|cask/ }
|
||||||
|
|
||||||
Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files)
|
Homebrew.failed = true unless Readall.valid_ruby_syntax?(ruby_files)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user