Merge pull request #6838 from arBmind/Rsync_commandline_output
Add shell quotes to the reported rsync command line to make it readable.
This commit is contained in:
commit
da9306fa27
|
@ -160,7 +160,7 @@ module VagrantPlugins
|
||||||
|
|
||||||
if r.exit_code != 0
|
if r.exit_code != 0
|
||||||
raise Vagrant::Errors::RSyncError,
|
raise Vagrant::Errors::RSyncError,
|
||||||
command: command.join(" "),
|
command: command.map { |s| s.include?(' ') && s[0] != "'" && ('"' + s + '"') || s }.join(" "),
|
||||||
guestpath: guestpath,
|
guestpath: guestpath,
|
||||||
hostpath: hostpath,
|
hostpath: hostpath,
|
||||||
stderr: r.stderr
|
stderr: r.stderr
|
||||||
|
|
Loading…
Reference in New Issue