mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-08 09:18:30 +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
|
-- uses rawget to test if "isPostcmd" has been set without
|
||||||
-- triggering an error if not.
|
-- triggering an error if not.
|
||||||
local isPostcmd = rawget(event, "isPostcmd")
|
local isPostcmd = rawget(event, "isPostcmd")
|
||||||
if event.isPostcmd then
|
if isPostcmd then
|
||||||
spawn(event, "/usr/bin/ssh",
|
spawn(event, "/usr/bin/ssh",
|
||||||
config.host, config.postcmd)
|
config.host, config.postcmd)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user