diff options
author | James Hannah <james@tlyk.eu> | 2014-07-02 10:10:40 +0100 |
---|---|---|
committer | James Hannah <james@tlyk.eu> | 2014-07-02 10:10:40 +0100 |
commit | 903e4157001b4e05ec6ed70ffacb75634e67f8ae (patch) | |
tree | 670f0a4af80a5ef2eabf509452c89251c1d499d6 | |
parent | 7cc7836b6e9a332ebdc6f3999f743b6aa0630fa3 (diff) |
Change Dir::exists? to File::directory? for ruby1.8
-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 |