diff --git a/lsyncd.lua b/lsyncd.lua index c984a58..d4b409c 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -2282,8 +2282,8 @@ local functionWriter = (function() -- TODO do array joining instead ft = ft.. " log('Normal', 'Event ',event.etype,\n".. - " ' spawns shell \""..lc.."\"')\n".. - " spawnShell(event, '"..cmd.."'" + " [[ spawns shell \""..lc.."\"]])\n".. + " spawnShell(event, [["..cmd.."]]" for _, v in ipairs(args) do ft = ft..',\n '..v end