summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosias <me@josias.dev>2021-07-24 13:59:55 -0700
committerJosias <me@josias.dev>2021-07-24 13:59:55 -0700
commit1046dce6fe71bcad9ee515f861aa6cfc227fa59a (patch)
tree46df755cbc3e0978ba00d9ccb7e52b22cabc9ca0
parent322fc27f332379971764881a0eec412423982435 (diff)
Fix command not found error for existing commands
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index c4cae62..a7db6cf 100644
--- a/main.c
+++ b/main.c
@@ -97,7 +97,7 @@ int main(int argc, char **argv)
} else if (argc < 3 && is_notebook_command == true) {
fprintf(stderr, "Usage: jw %s NOTEBOOK\n", argv[1]);
return EXIT_FAILURE;
- } else {
+ } else if (is_notebook_command == false) {
fprintf(stderr, "jw: command \"%s\" not found\n", argv[1]);
return EXIT_FAILURE;
}