From 5647de8ba4dbd872ded8cd1ddf88ac7a922933a0 Mon Sep 17 00:00:00 2001 From: Andreas Reischuck Date: Sat, 9 Jan 2016 22:27:54 +0100 Subject: [PATCH] Add shell quotes to the reported rsync command line to make it readable. --- plugins/synced_folders/rsync/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/synced_folders/rsync/helper.rb b/plugins/synced_folders/rsync/helper.rb index 495cb7e5d..1fc2f1fad 100644 --- a/plugins/synced_folders/rsync/helper.rb +++ b/plugins/synced_folders/rsync/helper.rb @@ -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