diff --git a/examples/lbash.lua b/examples/lbash.lua index f8423f4..fee4baa 100644 --- a/examples/lbash.lua +++ b/examples/lbash.lua @@ -21,12 +21,11 @@ prefix = "" -- for testing purposes. uses bash command to hold local dirs in sync. -- bash = { - delay = 5, maxProcesses = 3, onStartup = - [[if [ "$(ls -A $1)" ]; then cp -r ^source* ^target; fi]], + [[if [ "$(ls -A ^source)" ]; then cp -r ^source* ^target; fi]], onCreate = prefix..[[cp -r ^sourcePathname ^targetPathname]], @@ -37,5 +36,5 @@ bash = { onMove = prefix..[[mv ^o.targetPathname ^d.targetPathname]], } -sync{bash, source="src", target="dst/"} +sync{bash, source="src", target="trg/"} diff --git a/lsyncd.lua b/lsyncd.lua index f99b3bd..016af70 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -1359,7 +1359,7 @@ local Syncs = (function() 'collapse', 'collapseTable', 'collect', - 'init', + 'init', 'maxDelays', 'maxProcesses', } @@ -2521,7 +2521,7 @@ local default_rsyncssh = { maxProcesses = 10, ----- - -- Default delay 3 seconds + -- Default delay. -- delay = 10, }