Make build script exit on build error
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10027 6f19259b-4bc3-4df7-8a09-765794883524
diff --git a/BeagleBoardPkg/b.bat b/BeagleBoardPkg/b.bat
index 3643be3..ab88c77 100755
--- a/BeagleBoardPkg/b.bat
+++ b/BeagleBoardPkg/b.bat
@@ -33,6 +33,7 @@
@REM Build the Beagle Board firmware and creat an FD (FLASH Device) Image.
CALL build -p BeagleBoardPkg\BeagleBoardPkg.dsc -a ARM -t RVCT31 -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8
+if ERRORLEVEL 1 goto Exit
@if /I "%1"=="CLEAN" goto Clean
@@ -58,6 +59,7 @@
)
cd ..
+:Exit
EXIT /B
:Clean