mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +00:00
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
|
||||
|
||||
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