From 19b08adf3520a221e77fe6ea4ebbeddd66966cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 30 Jan 2015 09:08:58 +0200 Subject: [PATCH 1/3] Fix lpostcmd to use isPostcmd via rawget as intended --- examples/lpostcmd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lpostcmd.lua b/examples/lpostcmd.lua index b48b0da..11f7faf 100644 --- a/examples/lpostcmd.lua +++ b/examples/lpostcmd.lua @@ -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 -- 2.2.2