Ignore blank lines and rsync comments in excludes file

This commit is contained in:
David Reiss 2013-07-05 10:44:52 -07:00
parent 716b88909a
commit d772fcba0f

View File

@ -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*(.*)'
)