mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-06 08:40:44 +00:00
fixing excludes
This commit is contained in:
parent
6c1a3edeb0
commit
1a1391dbc5
@ -1082,17 +1082,17 @@ local Excludes = (function()
|
||||
if p:byte(-1) == 36 then
|
||||
-- ends with $
|
||||
if path:match(p) then
|
||||
log("Exclude", "'",path,"' matches '",p,"' (1)")
|
||||
--log("Exclude", "'",path,"' matches '",p,"' (1)")
|
||||
return true
|
||||
end
|
||||
else
|
||||
-- end either end with / or $
|
||||
if path:match(p.."/") or path:match(p.."$") then
|
||||
log("Exclude", "'",path,"' matches '",p,"' (2)")
|
||||
--log("Exclude", "'",path,"' matches '",p,"' (2)")
|
||||
return true
|
||||
end
|
||||
end
|
||||
log("Exclude", "'",path,"' NOT matches '",p,"'")
|
||||
--log("Exclude", "'",path,"' NOT matches '",p,"'")
|
||||
end
|
||||
return false
|
||||
end
|
||||
@ -3247,7 +3247,6 @@ local default_rsyncssh = {
|
||||
elist, "/usr/bin/rsync",
|
||||
"<", zPaths,
|
||||
config.rsyncOps,
|
||||
"-r",
|
||||
"--from0",
|
||||
"--files-from=-",
|
||||
config.source,
|
||||
|
@ -5,10 +5,11 @@
|
||||
require("posix")
|
||||
dofile("tests/testlib.lua")
|
||||
|
||||
cwriteln("****************************************************************")
|
||||
cwriteln(" Testing default.rsyncssh with random data activity ")
|
||||
cwriteln("****************************************************************")
|
||||
cwriteln("(This test needs passwordless localhost access of current user)");
|
||||
cwriteln("****************************************************************");
|
||||
cwriteln(" Testing default.rsyncssh with random data activity ");
|
||||
cwriteln("****************************************************************");
|
||||
cwriteln(" (this test needs passwordless ssh localhost access ");
|
||||
cwriteln(" for current user)");
|
||||
|
||||
local tdir, srcdir, trgdir = mktemps()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user