aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMax Howell2011-08-02 14:44:09 +0100
committerMax Howell2011-08-02 14:45:03 +0100
commitcb049409e53f501b1b863583e7316e786f99749c (patch)
tree2910bd0a10819732365e3d9372bc435c475f85e9 /Library/Homebrew/cmd
parentfd6c9833c68c666d55195e208f81d616c149d00d (diff)
downloadbrew-cb049409e53f501b1b863583e7316e786f99749c.tar.bz2
Fix `brew doctor` if sbin directory doesn't exist
Diffstat (limited to 'Library/Homebrew/cmd')
-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