From eb6df1bed42c61ffb6c64e1196c8f4ab2f80d7cf Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Mon, 29 Aug 2011 07:53:15 +0000 Subject: [PATCH] accept default values for rsyncOpts as overrideable by rsyncOps --- lsyncd.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsyncd.lua b/lsyncd.lua index 44efe0e..bb46b8e 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -3294,7 +3294,7 @@ local default_rsync = { end if config.rsyncOps then - if config.rsyncOpts then + if config.rsyncOpts ~= "-lts" then error("'rsyncOpts' and 'rsyncOps' provided in config, decide for one.") end config.rsyncOpts = config.rsyncOps @@ -3514,7 +3514,7 @@ local default_rsyncssh = { -- prepare = function(config) if config.rsyncOps then - if config.rsyncOpts then + if config.rsyncOpts ~= "-lts" then error("'rsyncOpts' and 'rsyncOps' provided in config, decide for one.") end config.rsyncOpts = config.rsyncOps