diff options
| author | Timo Ketola <[email protected]> | 2012-04-22 23:57:27 +0000 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2012-04-23 22:07:00 +0200 |
| commit | 030fca5228a2a1e946ac13ff8fae9ccb8c516d7b (patch) | |
| tree | 71c7147d8841668e40447c890db542af1380a433 /common | |
| parent | 2790bf69dc12fb9aeb9836904e5f57c7f83d5552 (diff) | |
Fix the behaviour of the 'run' command
If one command fails, 'run' command should terminate and not execute
any remaining variables.
Signed-off-by: Timo Ketola <[email protected]>
Tested-by: Wolfgang Denk <[email protected]>
Tested-by: Simon Glass <[email protected]>
Acked-by: Simon Glass <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/main.c | 3 |
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 ()) |
