diff options
author | elijah <elijah@riseup.net> | 2013-02-26 20:41:44 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-26 20:41:44 -0800 |
commit | e61a7f9285956e4b54bf71cf4e5c5a7ba2d9dc10 (patch) | |
tree | cfc123a58f42ece7e8f0980b4a4f651727c9f263 /lib | |
parent | 37ce2bddb9556cbad0b4b13e37df8e1286a0375e (diff) |
minor ruby 1.8 compatibility change
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli/config/object.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb index b8b3c38..4425a59 100644 --- a/lib/leap_cli/config/object.rb +++ b/lib/leap_cli/config/object.rb @@ -269,7 +269,7 @@ module LeapCli Util.log :created, Path.relative_path(local_provider_path) actual_path = local_provider_path end - if Dir.exists?(actual_path) && actual_path !~ /\/$/ + if File.directory?(actual_path) && actual_path !~ /\/$/ actual_path += '/' # ensure directories end with /, important for building rsync command end relative_path = Path.relative_path(actual_path) |