From a3bf00faa937fe7aa6b982d65e8a520e277575b8 Mon Sep 17 00:00:00 2001 From: dacctal Date: Mon, 22 Jun 2026 19:57:16 +0000 Subject: i ACTUALLY fixed the rest of the install functions --- src/lua_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lua_state.c') diff --git a/src/lua_state.c b/src/lua_state.c index 435d602..e440ea0 100644 --- a/src/lua_state.c +++ b/src/lua_state.c @@ -228,7 +228,7 @@ bool target_loop_install(lua_State *L, const char* lua_file, const char *target) lua_pop(L, 1); return false; } - if (lua_pcall(L, 0, 0, 0) != LUA_OK) { + if (lua_pcall(L, 0, 1, 0) != LUA_OK) { if (is_verbose) printf( "%s %s: 'targets.%s.install' function borked: %s\n", print_warning, lua_file, target, lua_tostring(L, -1) @@ -251,7 +251,7 @@ bool target_loop_install(lua_State *L, const char* lua_file, const char *target) "%s %s: 'targets.%s.post_install' is not a function.\n", print_warning, lua_file, target ); - } else if (lua_pcall(L, 0, 0, 0) != LUA_OK) { + } else if (lua_pcall(L, 0, 1, 0) != LUA_OK) { if (is_verbose) printf( "%s %s: 'targets.%s.post_install' function borked: %s\n", print_warning, lua_file, target, lua_tostring(L, -1) @@ -286,7 +286,7 @@ bool target_loop_uninstall(lua_State *L, const char *lua_file, const char *targe lua_pop(L, 1); return false; } - if (lua_pcall(L, 0, 0, 0) != LUA_OK) { + if (lua_pcall(L, 0, 1, 0) != LUA_OK) { if (is_verbose) printf( "%s %s: 'targets.%s.uninstall' function borked: %s\n", print_warning, lua_file, target, lua_tostring(L, -1) -- cgit v1.2.3