summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-10-25 23:01:32 -0600
committerSimon Glass <sjg@chromium.org>2014-05-09 14:46:43 -0600
commit1992dbfdb9886c3dfc4a505091895c851f736f3a (patch)
tree0f7b59d4ac0849061697d01877f057b4dc5664f4 /common
parentfd37dac9eb37b543fb1b82a733729514a67bd801 (diff)
downloadu-boot-imx-1992dbfdb9886c3dfc4a505091895c851f736f3a.zip
u-boot-imx-1992dbfdb9886c3dfc4a505091895c851f736f3a.tar.gz
u-boot-imx-1992dbfdb9886c3dfc4a505091895c851f736f3a.tar.bz2
Make 'run' use run_command_list() instead of run_command()
In the case where an environment variable spans multiple lines, we should use run_command_list() so that all lines are executed. This shold be backwards compatible with existing behaviour for existing scripts. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c
index e54f63b..9bee7bd 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1550,7 +1550,7 @@ int do_run (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
return 1;
}
- if (run_command(arg, flag) != 0)
+ if (run_command_list(arg, -1, flag) != 0)
return 1;
}
return 0;