diff options
| author | Jack Nagel | 2015-01-12 21:26:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-01-12 21:26:18 -0500 |
| commit | b1514c1c40390b2238f378ff132b76e2e8a744ef (patch) | |
| tree | 13cc8eee0cd669d0117a8dc549edc6a44b2e6e71 /Library/Homebrew | |
| parent | aa4ff175ffe504d824c4bf1174abfd0ab7b6795c (diff) | |
| download | brew-b1514c1c40390b2238f378ff132b76e2e8a744ef.tar.bz2 | |
doctor: check cellar access
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 954f5b8cf..d94742459 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -469,6 +469,15 @@ def check_access_cache end end +def check_access_cellar + if HOMEBREW_CELLAR.exist? && !HOMEBREW_CELLAR.writable_real? + <<-EOS.undent + #{HOMEBREW_CELLAR} isn't writable. + You should `chown` #{HOMEBREW_CELLAR} + EOS + end +end + def check_ruby_version ruby_version = MacOS.version >= "10.9" ? "2.0" : "1.8" if RUBY_VERSION[/\d\.\d/] != ruby_version then <<-EOS.undent |
