diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 13657b0aee9d85d6050791c376239f53dceb0731..dca685904a626a24fd3dc4cdd7c89920e97f7bbd 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -353,7 +353,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').children.count > 0 + if (HOMEBREW_PREFIX+'sbin').children.length > 0 unless seen_prefix_sbin puts <<-EOS.undent Some brews install binaries to sbin instead of bin, but Homebrew's