diff options
-rwxr-xr-x | byteback-backup | 2 |
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 |