blob: 34f3de1a1022286f88233ec0aac17f92f6bfbe90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 19b08adf3520a221e77fe6ea4ebbeddd66966cac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
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
|