From c6e9097e7817a502024e46909fff2decacacdfe5 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Mon, 23 Sep 2024 18:24:01 -0400 Subject: fixed lua api exit status issue --- src/lua_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua_api.c b/src/lua_api.c index 05742cc..cd21064 100644 --- a/src/lua_api.c +++ b/src/lua_api.c @@ -103,7 +103,7 @@ static int execute_command(lua_State *L, const char *line) { if (status == -1) { fprintf(stderr, "lush: Expected end of quoted string\n"); - } else if (lush_run(L, args, status) == 0) { + } else if (lush_run(L, args, status) != 0) { exit(1); } -- cgit v1.2.3-59-g8ed1b