Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
93a0d563
Commit
93a0d563
authored
14 years ago
by
Adam Vandenberg
Browse files
Options
Downloads
Patches
Plain Diff
brew-doctor - also check /usr/local/etc
parent
06f484d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/brew_doctor.rb
+18
-0
18 additions, 0 deletions
Library/Homebrew/brew_doctor.rb
with
18 additions
and
0 deletions
Library/Homebrew/brew_doctor.rb
+
18
−
0
View file @
93a0d563
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment