提交 030fca52 编写于 作者: T Timo Ketola 提交者: Wolfgang Denk

Fix the behaviour of the 'run' command

If one command fails, 'run' command should terminate and not execute
any remaining variables.
Signed-off-by: NTimo Ketola <timo@exertus.fi>
Tested-by: NWolfgang Denk <wd@denx.de>
Tested-by: NSimon Glass <sjg@chromium.org>
Acked-by: NSimon Glass <sjg@chromium.org>
上级 2790bf69
......@@ -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 ())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册