From 36ce83fd8dcd413ccd84964e9e207a848c893b95 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 29 Jul 2011 14:54:42 +0100 Subject: Don't mention the sbin PATH issue unless files are there Because the new installer will always create /usr/local/sbin. Because we must keep /usr/local root:wheel unless we want to be considered bad citizens.--- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 90b94d5d6..40f74f4cd 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -370,7 +370,7 @@ def check_user_path end # Don't complain about sbin not being in the path if it doesn't exist - if (HOMEBREW_PREFIX+'sbin').exist? + if (HOMEBREW_PREFIX+'sbin').children.count > 0 unless seen_prefix_sbin puts <<-EOS.undent Some brews install binaries to sbin instead of bin, but Homebrew's -- cgit v1.2.3