aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2011-08-02 14:44:09 +0100
committerMax Howell2011-08-02 14:45:03 +0100
commitd3e2c38fc6788718980d3d4787193cabc8590f77 (patch)
treeb92c5b384d6f447d0776af5810eb37e1656d9a0c /Library
parentcbcd4a32a648d2dfc808066dc3200f92c1a2f020 (diff)
downloadhomebrew-d3e2c38fc6788718980d3d4787193cabc8590f77.tar.bz2
Fix `brew doctor` if sbin directory doesn't exist
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index dca685904..03eec12a8 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -353,7 +353,8 @@ def check_user_path
end
# Don't complain about sbin not being in the path if it doesn't exist
- if (HOMEBREW_PREFIX+'sbin').children.length > 0
+ sbin = (HOMEBREW_PREFIX+'sbin')
+ if sbin.directory? and sbin.children.length > 0
unless seen_prefix_sbin
puts <<-EOS.undent
Some brews install binaries to sbin instead of bin, but Homebrew's