Commit 4eb580b7 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini

Correct return code from builtin_run_command_list()

The return code is not consistent with cli_simple_run_command_list(). For the
last command in a sequence, the return code is actually inverted.

Fix it.
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 587e1d43
...@@ -331,7 +331,7 @@ int cli_simple_run_command_list(char *cmd, int flag) ...@@ -331,7 +331,7 @@ int cli_simple_run_command_list(char *cmd, int flag)
++next; ++next;
} }
if (rcode == 0 && *line) if (rcode == 0 && *line)
rcode = (cli_simple_run_command(line, 0) >= 0); rcode = (cli_simple_run_command(line, 0) < 0);
return rcode; return rcode;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment