lib/vagrant/scp/commands/scp.rb in vagrant-scp-0.5.4 vs lib/vagrant/scp/commands/scp.rb in vagrant-scp-0.5.5
- old
+ new
@@ -16,14 +16,14 @@
with_target_vms(host) do |machine|
@ssh_info = machine.ssh_info
raise Vagrant::Errors::SSHNotReady if @ssh_info.nil?
user_at_host = "#{@ssh_info[:username]}@#{@ssh_info[:host]}"
if net_ssh_command == :upload!
- target = "#{user_at_host}:#{target_files}"
- source = source_files
+ target = "#{user_at_host}:'#{target_files}'"
+ source = "'#{source_files}'"
else
- target = target_files
- source = "#{user_at_host}:#{source_files}"
+ target = "'#{target_files}'"
+ source = "#{user_at_host}:'#{source_files}'"
end
command = [
"scp",
"-r",
"-o StrictHostKeyChecking=no",