Add logic to check the execution break flag before executing the next command in a script file.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jaben carsey <Jaben.carsey@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13547 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2012-07-23 03:17:09 +00:00
parent e4d7370d18
commit c6a7fef8ea
1 changed files with 3 additions and 0 deletions

View File

@ -1874,6 +1874,9 @@ RunScriptFileHandle (
Status = EFI_SUCCESS;
break;
}
if (ShellGetExecutionBreakFlag()) {
break;
}
if (EFI_ERROR(Status)) {
break;
}