From 903e4157001b4e05ec6ed70ffacb75634e67f8ae Mon Sep 17 00:00:00 2001 From: James Hannah Date: Wed, 2 Jul 2014 10:10:40 +0100 Subject: Change Dir::exists? to File::directory? for ruby1.8 --- byteback-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byteback-backup b/byteback-backup index 346dd5d..b5050bc 100755 --- a/byteback-backup +++ b/byteback-backup @@ -107,7 +107,7 @@ rescue => err end # Check the lockfile first -if Dir.exists?(File.dirname(@lockfile)) +if File.directory?(File.dirname(@lockfile)) if File.exists? @lockfile # check the lockfile is sane exist_pid = File.read(@lockfile).to_i -- cgit v1.2.1