aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-24 17:51:36 -0500
committerJack Nagel2014-09-24 17:51:36 -0500
commit586756209ca528b18e261f0c1fef4d7357f9135c (patch)
tree329e8fa4932b631be3d3c78da31777b11f6ca36c /Library
parent612da7c3b087d31b9ffc0c0975431f89d9056ca8 (diff)
downloadbrew-586756209ca528b18e261f0c1fef4d7357f9135c.tar.bz2
Dir.exist? is not in 1.8
Diffstat (limited to 'Library')
-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) }