diff options
| author | Adam Vandenberg | 2013-01-23 20:12:55 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-23 20:12:55 -0800 |
| commit | 926e0ee1200b52e021d99d6951f3a1b23c3d2c8b (patch) | |
| tree | 3ba6d51b00c4d75853bcd148b96b3423952f5bd0 /Library | |
| parent | 5edfd0fcd0b60c7c08c4466c083d76dfa04b1b1e (diff) | |
| download | homebrew-926e0ee1200b52e021d99d6951f3a1b23c3d2c8b.tar.bz2 | |
Check ownership of logs folder
Closes #16607.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 360236511..b6207112a 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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 |
