summaryrefslogtreecommitdiffstats
path: root/src/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c
index bcc22e1..d62bbf0 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -111,7 +111,7 @@ bool fastd_shell_exec(fastd_context_t *ctx, const fastd_peer_t *peer, const char
else {
if (WIFSIGNALED(result))
pr_error(ctx, "command exited with signal %i", WTERMSIG(result));
- else if (result)
+ else if (WEXITSTATUS(result))
pr_warn(ctx, "command exited with status %i", WEXITSTATUS(ret));
else
ok = true;