aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-09-24 17:51:36 -0500
committerJack Nagel2014-09-24 17:51:36 -0500
commitbed5d9d9fd4f30c4b713e175123adad8b7ab0b1d (patch)
tree7776d51ba4132642deee2161a8dbb32ccefb2e06 /Library/Homebrew/cmd
parent30f21dfec9a8d5e4f14a06a655b07cf7c6d386d0 (diff)
downloadhomebrew-bed5d9d9fd4f30c4b713e175123adad8b7ab0b1d.tar.bz2
Dir.exist? is not in 1.8
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
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) }