mirror of https://github.com/octoleo/lsyncd.git
Merge pull request #221 from dreiss/config
Fixes for parsing excludes file
This commit is contained in:
commit
1dacb68745
|
@ -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