Add shell quotes to the reported rsync command line to make it readable.

This commit is contained in:
Andreas Reischuck 2016-01-09 22:27:54 +01:00
parent 005c9fb127
commit 5647de8ba4
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ module VagrantPlugins
if r.exit_code != 0
raise Vagrant::Errors::RSyncError,
command: command.join(" "),
command: command.map { |s| s.include?(' ') && s[0] != "'" && ('"' + s + '"') || s }.join(" "),
guestpath: guestpath,
hostpath: hostpath,
stderr: r.stderr