aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lush.c b/src/lush.c
index 0e647e9..faad399 100644
--- a/src/lush.c
+++ b/src/lush.c
@@ -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