summaryrefslogtreecommitdiffstats
path: root/cmd-if-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r--cmd-if-shell.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index b81985f8..f2b015d2 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -88,11 +88,7 @@ cmd_if_shell_callback(struct job *job)
return;
}
- if (cmd_list_exec(cmdlist, ctx) < 0) {
- cmd_list_free(cmdlist);
- return;
- }
-
+ cmd_list_exec(cmdlist, ctx);
cmd_list_free(cmdlist);
}