mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +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
|
||||
|
||||
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
|
||||
s.excludes:loadFile( config.excludeFrom )
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user