diff options
| author | Adam Vandenberg | 2011-06-02 09:27:11 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-06-02 09:27:11 -0700 |
| commit | 884048c52a8cf9c9a66921f16f365768d2c407b7 (patch) | |
| tree | d0085debb9b180a45bb7372f8806361ab8838af1 /Library | |
| parent | 41407a3f033416c7c9cbbaa50b5d23103a71e7f1 (diff) | |
| download | brew-884048c52a8cf9c9a66921f16f365768d2c407b7.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 |
