diff options
| author | Jack Nagel | 2014-09-24 17:51:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-24 17:51:36 -0500 |
| commit | bed5d9d9fd4f30c4b713e175123adad8b7ab0b1d (patch) | |
| tree | 7776d51ba4132642deee2161a8dbb32ccefb2e06 /Library/Homebrew/cmd | |
| parent | 30f21dfec9a8d5e4f14a06a655b07cf7c6d386d0 (diff) | |
| download | homebrew-bed5d9d9fd4f30c4b713e175123adad8b7ab0b1d.tar.bz2 | |
Dir.exist? is not in 1.8
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 374b66c2e..2c0d1bf4a 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -104,7 +104,7 @@ def check_for_macgpg2 end def __check_stray_files(dir, pattern, white_list, message) - return unless Dir.exist?(dir) + return unless File.directory?(dir) files = Dir.chdir(dir) { Dir[pattern].select { |f| File.file?(f) && !File.symlink?(f) } |
