mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-02-10 07:38:46 +00:00
fixing new rsync argument computation
This commit is contained in:
parent
a694e0c55c
commit
e2b0cdb359
@ -223,11 +223,23 @@ default.rsync = {
|
||||
end
|
||||
end
|
||||
|
||||
if rsync.links then shorts[ #shorts ] = 'l'; end
|
||||
if rsync.times then shorts[ #shorts ] = 't'; end
|
||||
if rsync.protectArgs then shorts[ #shorts ] = 's'; end
|
||||
if rsync.links then
|
||||
shorts[ #shorts + 1 ] = 'l'
|
||||
end
|
||||
|
||||
if rsync.times then
|
||||
shorts[ #shorts + 1 ] = 't'
|
||||
end
|
||||
|
||||
if rsync.protectArgs then
|
||||
shorts[ #shorts + 1 ] = 's'
|
||||
end
|
||||
|
||||
if #shorts ~= 1 then
|
||||
computed[ 1 ] = table.concat( shorts, '' )
|
||||
else
|
||||
computed[ 1 ] = { }
|
||||
end
|
||||
|
||||
-- appends a / to target if not present
|
||||
if string.sub(config.target, -1) ~= '/' then
|
||||
|
Loading…
x
Reference in New Issue
Block a user