lib/vagrant-unison/command.rb in vagrant-unison-0.0.2 vs lib/vagrant-unison/command.rb in vagrant-unison-0.0.3
- old
+ new
@@ -25,18 +25,18 @@
# Unison over to the guest path using the SSH info
command = [
"unison", "-batch",
"-ignore='Name {git*,.vagrant/,*.DS_Store}'",
- "-sshargs \"-p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i #{ssh_info[:private_key_path]}\"",
+ "-sshargs", "-p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i #{ssh_info[:private_key_path]}",
hostpath,
"ssh://#{ssh_info[:username]}@#{ssh_info[:host]}/#{guestpath}"
]
r = Vagrant::Util::Subprocess.execute(*command)
if r.exit_code != 0
raise Vagrant::Errors::UnisonError,
- :command => command.join(" "),
+ :command => command.inspect,
:guestpath => guestpath,
:hostpath => hostpath,
:stderr => r.stderr
end
\ No newline at end of file