Skip to content
Snippets Groups Projects
Commit 61ddce07 authored by Simon Glass's avatar Simon Glass Committed by Wolfgang Denk
Browse files

sandbox: Use the new run_command()


Now that run_command() handles both parsers, clean up sandbox to use it.
This fixes a build error.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 9e02a6b8
No related branches found
No related tags found
No related merge requests found
...@@ -90,13 +90,7 @@ int sandbox_main_loop_init(void) ...@@ -90,13 +90,7 @@ int sandbox_main_loop_init(void)
/* Execute command if required */ /* Execute command if required */
if (state->cmd) { if (state->cmd) {
/* TODO: redo this when cmd tidy-up series lands */
#ifdef CONFIG_SYS_HUSH_PARSER
run_command(state->cmd, 0); run_command(state->cmd, 0);
#else
parse_string_outer(state->cmd, FLAG_PARSE_SEMICOLON |
FLAG_EXIT_FROM_LOOP);
#endif
os_exit(state->exit_type); os_exit(state->exit_type);
} }
......
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