summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Hannah <james@tlyk.eu>2014-07-02 10:10:40 +0100
committerJames Hannah <james@tlyk.eu>2014-07-02 10:10:40 +0100
commit903e4157001b4e05ec6ed70ffacb75634e67f8ae (patch)
tree670f0a4af80a5ef2eabf509452c89251c1d499d6
parent7cc7836b6e9a332ebdc6f3999f743b6aa0630fa3 (diff)
Change Dir::exists? to File::directory? for ruby1.8
-rwxr-xr-xbyteback-backup2
1 files changed, 1 insertions, 1 deletions
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