diff options
| author | 2024-09-23 18:24:01 -0400 | |
|---|---|---|
| committer | 2024-09-23 18:24:01 -0400 | |
| commit | c6e9097e7817a502024e46909fff2decacacdfe5 (patch) | |
| tree | 6c8bfc315a9491835f33c3e222340691c3d5dc2f /src/lua_api.c | |
| parent | fixed splitting within quoted string (diff) | |
fixed lua api exit status issue
Diffstat (limited to '')
| -rw-r--r-- | src/lua_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
