diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-02 16:58:48 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-02 16:58:48 +1300 |
commit | 71d488e966e3f8179cafda13a7a0cea5d1005a7b (patch) | |
tree | 7b99ff720131cd1f6480cea37b63048669858db7 | |
parent | Fix trailing whitespace (diff) | |
download | spsh-71d488e966e3f8179cafda13a7a0cea5d1005a7b.tar.gz spsh-71d488e966e3f8179cafda13a7a0cea5d1005a7b.zip |
Remove cuddled else
-rw-r--r-- | cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |