summaryrefslogtreecommitdiff
path: root/common/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c
index db181d319b8..3b9e39a9805 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1338,7 +1338,8 @@ static int builtin_run_command(const char *cmd, int flag)
continue;
}
- rc = cmd_process(flag, argc, argv, &repeatable);
+ if (cmd_process(flag, argc, argv, &repeatable))
+ rc = -1;
/* Did the user stop this? */
if (had_ctrlc ())