diff options
| author | Adam Vandenberg | 2011-06-02 09:27:11 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-02 09:27:11 -0700 |
| commit | f921f46078d8cc866f83ef821c5ba7f210f385f5 (patch) | |
| tree | fa9d065d1b49ec3d261fd04e5146e5b519c2bf3f /Library | |
| parent | 8b99818bfee6edb1ed6051841096434d43ad79ac (diff) | |
| download | homebrew-f921f46078d8cc866f83ef821c5ba7f210f385f5.tar.bz2 | |
brew-doctor: only check sbin if it exists
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index dddfc30e4..c152c07d0 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -342,16 +342,19 @@ def check_user_path EOS end - unless seen_prefix_sbin - puts <<-EOS.undent - Some brews install binaries to sbin instead of bin, but Homebrew's - sbin was not found in your path. + # Don't complain about sbin not being in the path if it doesn't exist + if (HOMEBREW_PREFIX+'sbin').exist? + unless seen_prefix_sbin + puts <<-EOS.undent + Some brews install binaries to sbin instead of bin, but Homebrew's + sbin was not found in your path. - Consider editing your .bashrc to add: - #{HOMEBREW_PREFIX}/sbin - to $PATH. + Consider editing your .bashrc to add: + #{HOMEBREW_PREFIX}/sbin + to $PATH. - EOS + EOS + end end end |
