fixing new rsync argument computation

This commit is contained in:
Axel Kittenberger 2012-10-02 08:25:46 +02:00
parent a694e0c55c
commit e2b0cdb359
1 changed files with 17 additions and 5 deletions

View File

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