mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
Fix lpostcmd to use isPostcmd via rawget as intended
This commit is contained in:
parent
e9ffda07f0
commit
19b08adf35
@ -25,7 +25,7 @@ local rsyncpostcmd = {
|
||||
-- uses rawget to test if "isPostcmd" has been set without
|
||||
-- triggering an error if not.
|
||||
local isPostcmd = rawget(event, "isPostcmd")
|
||||
if event.isPostcmd then
|
||||
if isPostcmd then
|
||||
spawn(event, "/usr/bin/ssh",
|
||||
config.host, config.postcmd)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user