summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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