Dir.exist? is not in 1.8
This commit is contained in:
parent
612da7c3b0
commit
586756209c
@ -104,7 +104,7 @@ def check_for_macgpg2
|
|||||||
end
|
end
|
||||||
|
|
||||||
def __check_stray_files(dir, pattern, white_list, message)
|
def __check_stray_files(dir, pattern, white_list, message)
|
||||||
return unless Dir.exist?(dir)
|
return unless File.directory?(dir)
|
||||||
|
|
||||||
files = Dir.chdir(dir) {
|
files = Dir.chdir(dir) {
|
||||||
Dir[pattern].select { |f| File.file?(f) && !File.symlink?(f) }
|
Dir[pattern].select { |f| File.file?(f) && !File.symlink?(f) }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user