Dir.exist? is not in 1.8

This commit is contained in:
Jack Nagel 2014-09-24 17:51:36 -05:00
parent 612da7c3b0
commit 586756209c

View File

@ -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) }