Skip to content
Snippets Groups Projects
Commit 030fca52 authored by Timo Ketola's avatar Timo Ketola Committed by Wolfgang Denk
Browse files

Fix the behaviour of the 'run' command


If one command fails, 'run' command should terminate and not execute
any remaining variables.

Signed-off-by: default avatarTimo Ketola <timo@exertus.fi>
Tested-by: default avatarWolfgang Denk <wd@denx.de>
Tested-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 2790bf69
No related branches found
No related tags found
No related merge requests found
......@@ -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 ())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment