Skip to content

Commit

Permalink
Merge pull request #2 from hroussez/master
Browse files Browse the repository at this point in the history
fix remote shell command
  • Loading branch information
Ilja Bobkevic committed Sep 22, 2015
2 parents 5f78a24 + 1309d79 commit 98f5aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kitchen/transport/rsync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def upload(locals, remote)
recursive = File.directory?(local)
execute("mkdir -p #{full_remote}") if recursive
time = Benchmark.realtime do
ssh_command = [login_command.command, login_command.arguments].flatten.join(' ')
ssh_command = [login_command.command, login_command.arguments[0..-2]].flatten.join(' ')
sync_command = "rsync -e '#{ssh_command}' -a#{@logger.debug? ? 'v' : ''}z #{local} #{@session.options[:user]}@#{@session.host}:#{remote}"
@logger.debug("[RSYNC] Running rsync command: #{sync_command}")
system(sync_command)
Expand All @@ -51,4 +51,4 @@ def upload(locals, remote)

end
end
end
end

0 comments on commit 98f5aed

Please sign in to comment.