Skip to content
Snippets Groups Projects
Commit 93a0d563 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

brew-doctor - also check /usr/local/etc

parent 06f484d1
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,23 @@ def check_access_include
end
end
def check_access_etc
etc_folder = HOMEBREW_PREFIX+'etc'
return unless etc_folder.exist?
unless etc_folder.writable?
puts <<-EOS.undent
#{etc_folder} isn't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to write a file to this folder, the install
will fail during the link step.
You should probably `chown` #{etc_folder}
EOS
end
end
def check_usr_bin_ruby
if /^1\.9/.match RUBY_VERSION
puts <<-EOS.undent
......@@ -563,6 +580,7 @@ def brew_doctor
check_access_share_locale
check_access_share_man
check_access_include
check_access_etc
check_user_path
check_which_pkg_config
check_pkg_config_paths
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment