From 2d31c971df92457a510f896eed8eeee6481e096e Mon Sep 17 00:00:00 2001 From: Nuno Miguel Reis Date: Tue, 21 Jan 2014 05:12:57 +0000 Subject: [PATCH] fixed to be used like this: lua/luarun app.lua call_block C --- resources/install/scripts/app/call_block/index.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/app/call_block/index.lua b/resources/install/scripts/app/call_block/index.lua index 8a47b67ad7..b93eb5deee 100644 --- a/resources/install/scripts/app/call_block/index.lua +++ b/resources/install/scripts/app/call_block/index.lua @@ -70,8 +70,8 @@ This method causes the script to get its manadatory arguments directly from the -- We have a single command letter -- Use session variables - logger("D", "NOTICE", "params default from session, count " .. string.format("%d", #argv[1]) .. " \n") - params["cmd"] = argv[1] + logger("D", "NOTICE", "params default from session, count " .. string.format("%d", #argv[2]) .. " \n") + params["cmd"] = argv[2] -- ensure that we have a fresh status on exit session:setVariable("call_block", "")