diff --git a/lib/middleman-deploy/methods/rsync.rb b/lib/middleman-deploy/methods/rsync.rb index 7821ef8..847ae7b 100644 --- a/lib/middleman-deploy/methods/rsync.rb +++ b/lib/middleman-deploy/methods/rsync.rb @@ -21,7 +21,7 @@ def process dest_url = "#{user}#{host}:#{path}" flags = self.flags || '-avz' - command = "rsync #{flags} '-e ssh -p #{port}' #{build_dir}/ #{dest_url}" + command = "rsync #{flags} -e 'ssh -p #{port}' #{build_dir}/ #{dest_url}" command += ' --delete' if clean