From c6a7fef8eacb0e8c035097a532e7d7864e0b997c Mon Sep 17 00:00:00 2001 From: ydong10 Date: Mon, 23 Jul 2012 03:17:09 +0000 Subject: Add logic to check the execution break flag before executing the next command in a script file. Signed-off-by: Eric Dong Reviewed-by: Jaben carsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13547 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/Shell.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ShellPkg/Application') diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 35ffae8e9c..182f896dbb 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -1874,6 +1874,9 @@ RunScriptFileHandle ( Status = EFI_SUCCESS; break; } + if (ShellGetExecutionBreakFlag()) { + break; + } if (EFI_ERROR(Status)) { break; } -- cgit v1.2.3