mirror of https://github.com/octoleo/lsyncd.git
added temp_dir rsync parameter
This commit is contained in:
parent
9dbea196c5
commit
d3b31bda37
|
@ -81,6 +81,7 @@ rsync.checkgauge = {
|
||||||
-- further rsync options
|
-- further rsync options
|
||||||
rsh = true,
|
rsh = true,
|
||||||
rsync_path = true,
|
rsync_path = true,
|
||||||
|
temp_dir = true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -469,6 +470,11 @@ rsync.prepare = function(
|
||||||
computedN = computedN + 1
|
computedN = computedN + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if crsync.temp_dir then
|
||||||
|
computed[ computedN ] = '--temp-dir=' + crsync.temp_dir
|
||||||
|
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