From d41d846741cef5d7c7989d022594569043b8ef20 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Thu, 12 Sep 2024 09:58:38 -0400 Subject: attempt to update build script to accept input into lush shell --- src/lush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lush.c b/src/lush.c index f04d8d7..bc03726 100644 --- a/src/lush.c +++ b/src/lush.c @@ -1134,7 +1134,7 @@ int lush_run(lua_State *L, char ***commands, int num_commands) { } // check if the command is a lua script - char *ext = strchr(commands[0][0], '.'); + char *ext = strrchr(commands[0][0], '.'); if (ext) { ext++; if (strcmp(ext, "lua") == 0) { -- cgit v1.2.3-59-g8ed1b