Skip to content
Snippets Groups Projects
Commit 4eb580b7 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -331,7 +331,7 @@ int cli_simple_run_command_list(char *cmd, int flag)
++next;
}
if (rcode == 0 && *line)
rcode = (cli_simple_run_command(line, 0) >= 0);
rcode = (cli_simple_run_command(line, 0) < 0);
return rcode;
}
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