Fix lpostcmd to use isPostcmd via rawget as intended

This commit is contained in:
Timo Teräs 2015-01-30 09:08:58 +02:00
parent e9ffda07f0
commit 19b08adf35
1 changed files with 1 additions and 1 deletions

View File

@ -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