From cd9672699e490904c47d20b4d74d0e7809254def Mon Sep 17 00:00:00 2001 From: Taylor Dean Date: Wed, 6 Nov 2019 11:47:57 -0500 Subject: [PATCH] Enable ssh._extra args ssh._extra args are currently ignored and never actually appended to the rsh arg. This PR addresses this issue (#402 which is closed despite never being properly resolved) --- default-rsyncssh.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/default-rsyncssh.lua b/default-rsyncssh.lua index a82fec6..08b8c66 100644 --- a/default-rsyncssh.lua +++ b/default-rsyncssh.lua @@ -553,6 +553,17 @@ rsyncssh.prepare = function computed[ computedN ] = v computedN = computedN + 1 + + if not config.rsync._rshIndex + then + config.rsync._rshIndex = #rsyncc + 1 + + rsyncc[ config.rsync._rshIndex ] = '--rsh=ssh' + end + + rsyncc[ config.rsync._rshIndex ] = + rsyncc[ config.rsync._rshIndex ] .. ' ' .. v + end end