mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +00:00
Ignore blank lines and rsync comments in excludes file
This commit is contained in:
parent
716b88909a
commit
d772fcba0f
@ -1384,7 +1384,9 @@ local Excludes = ( function( )
|
|||||||
|
|
||||||
-- lsyncd 2.0 does not support includes
|
-- lsyncd 2.0 does not support includes
|
||||||
|
|
||||||
if not string.match(line, '^%s*%+') then
|
if not string.match(line, '^%s*%+') and
|
||||||
|
not string.match(line, '^%s*#') and
|
||||||
|
not string.match(line, '^%s*$') then
|
||||||
local p = string.match(
|
local p = string.match(
|
||||||
line, '%s*-?%s*(.*)'
|
line, '%s*-?%s*(.*)'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user