aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 28c46f1..4834bfb 100644
--- a/cmd.c
+++ b/cmd.c
@@ -44,9 +44,10 @@ void cmd(char *line) {
execve(cmd, cmd_argv, cmd_envp);
}
waitpid(pid, &status, 0);
+ }
/* Otherwise, print an error, because we couldn't find the command */
- } else {
+ else {
fprintf(stderr, "Command ā€œ%sā€ not found\n", cmd);
return;
}