aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-02 16:58:48 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-02 16:58:48 +1300
commit71d488e966e3f8179cafda13a7a0cea5d1005a7b (patch)
tree7b99ff720131cd1f6480cea37b63048669858db7
parentFix trailing whitespace (diff)
downloadspsh-71d488e966e3f8179cafda13a7a0cea5d1005a7b.tar.gz
spsh-71d488e966e3f8179cafda13a7a0cea5d1005a7b.zip
Remove cuddled else
-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;
}