From d772fcba0fb21abca796b4c2f67b102dd09a14ed Mon Sep 17 00:00:00 2001 From: David Reiss Date: Fri, 5 Jul 2013 10:44:52 -0700 Subject: [PATCH] Ignore blank lines and rsync comments in excludes file --- lsyncd.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lsyncd.lua b/lsyncd.lua index e3197fc..d92b4e8 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -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*(.*)' )