mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-09 09:50:28 +00:00
checking delay to a number > 0
This commit is contained in:
parent
3aa8ed1182
commit
1c299c14dd
10
lsyncd.lua
10
lsyncd.lua
@ -2111,6 +2111,16 @@ local Sync = ( function( )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if
|
||||||
|
config.delay ~= nil and
|
||||||
|
(
|
||||||
|
type(config.delay) ~= 'number' or
|
||||||
|
config.delay < 0
|
||||||
|
)
|
||||||
|
then
|
||||||
|
error( 'delay must be a number and >= 0', 2 )
|
||||||
|
end
|
||||||
|
|
||||||
if config.excludeFrom then
|
if config.excludeFrom then
|
||||||
s.excludes:loadFile( config.excludeFrom )
|
s.excludes:loadFile( config.excludeFrom )
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user