Check ownership of logs folder

Closes Homebrew/homebrew#16607.
This commit is contained in:
Adam Vandenberg 2013-01-23 20:12:55 -08:00
parent 04d22a88b1
commit 2c6a7bdca8

View File

@ -370,6 +370,21 @@ def check_access_share
'fail during the link step.'
end
def check_access_logs
folder = Pathname.new('~/Library/Logs/Homebrew')
if folder.exist? and not folder.writable_real?
<<-EOS.undent
#{folder} isn't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew.
Homebrew writes debugging logs to this location.
You should probably `chown` #{folder}
EOS
end
end
def check_usr_bin_ruby
if /^1\.9/.match RUBY_VERSION
<<-EOS.undent