synced_folders/rsync: make sure host path ends in "/"

This commit is contained in:
Mitchell Hashimoto 2014-01-15 21:22:37 -08:00
parent 5bddd6c366
commit 8a1995bec9
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ module VagrantPlugins
hostpath, force: true)
end
# Make sure the host path ends with a "/" to avoid creating
# a nested directory...
if !hostpath.end_with?("/")
hostpath += "/"
end
# Connection information
username = ssh_info[:username]
host = ssh_info[:host]