mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +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
|
||||
|
||||
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(
|
||||
line, '%s*-?%s*(.*)'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user