diff options
| author | 2025-02-10 15:06:25 -0500 | |
|---|---|---|
| committer | 2025-02-10 15:06:25 -0500 | |
| commit | 823a5a4296bc75ea25807c4601d33cc3a4e4d0d9 (patch) | |
| tree | e5e930381c26d381bed8829c200663fdf96e649f | |
| parent | made constant for lush_lua builtin index (diff) | |
fixed --version bug
| -rw-r--r-- | src/lush.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1386,7 +1386,7 @@ static void background_handler(int sig) { int main(int argc, char *argv[]) { // check if the --version arg was passed - if (argc > 2 && strcmp(argv[1], "--version") == 0) { + if (argc > 1 && strcmp(argv[1], "--version") == 0) { #ifdef LUSH_VERSION printf("Lunar Shell, version %s\n", LUSH_VERSION); #endif |
