aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/object.rb2
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)