mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +00:00
Merge pull request #195 from kashyapp/master
Adding --timeout to default.rsync
This commit is contained in:
commit
dd4a1134a5
@ -76,6 +76,7 @@ rsync.checkgauge = {
|
|||||||
rsync_path = true,
|
rsync_path = true,
|
||||||
sparse = true,
|
sparse = true,
|
||||||
temp_dir = true,
|
temp_dir = true,
|
||||||
|
timeout = true,
|
||||||
times = true,
|
times = true,
|
||||||
update = true,
|
update = true,
|
||||||
verbose = true,
|
verbose = true,
|
||||||
@ -481,6 +482,11 @@ rsync.prepare = function(
|
|||||||
computedN = computedN + 1
|
computedN = computedN + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if crsync.timeout then
|
||||||
|
computed[ computedN ] = '--timeout=' .. crsync.timeout
|
||||||
|
computedN = computedN + 1
|
||||||
|
end
|
||||||
|
|
||||||
if shortsN ~= 2 then
|
if shortsN ~= 2 then
|
||||||
computed[ 1 ] = table.concat( shorts, '' )
|
computed[ 1 ] = table.concat( shorts, '' )
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user