doctor: check access on all important HOMEBREW_PREFIX subdirs

This commit is contained in:
Jack Nagel 2015-01-12 21:26:18 -05:00
parent b1514c1c40
commit d0a1800e37

View File

@ -419,7 +419,7 @@ def check_access_usr_local
end end
end end
%w{include etc lib lib/pkgconfig share}.each do |d| (Keg::TOP_LEVEL_DIRECTORIES + ["lib/pkgconfig"]).each do |d|
define_method("check_access_#{d.sub("/", "_")}") do define_method("check_access_#{d.sub("/", "_")}") do
dir = HOMEBREW_PREFIX.join(d) dir = HOMEBREW_PREFIX.join(d)
if dir.exist? && !dir.writable_real? then <<-EOS.undent if dir.exist? && !dir.writable_real? then <<-EOS.undent