From 586756209ca528b18e261f0c1fef4d7357f9135c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 24 Sep 2014 17:51:36 -0500 Subject: [PATCH] Dir.exist? is not in 1.8 --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 374b66c2e1..2c0d1bf4a1 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) }