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)
This commit is contained in:
Taylor Dean 2019-11-06 11:47:57 -05:00
parent 42413cabbe
commit cd9672699e
No known key found for this signature in database
GPG Key ID: 2CB2522DACB1DE64
1 changed files with 11 additions and 0 deletions

View File

@ -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