diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-06-22 19:57:16 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-06-22 19:57:16 +0000 |
| commit | a3bf00faa937fe7aa6b982d65e8a520e277575b8 (patch) | |
| tree | ff62e58f9aa9bd50c68caca860e643b87a507351 /src/lua_state.c | |
| parent | 892ef493eb34216b3bbfb04d6b24b756c87b334c (diff) | |
i ACTUALLY fixed the rest of the install functions
Diffstat (limited to 'src/lua_state.c')
| -rw-r--r-- | src/lua_state.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
