From 4787933a52f488d1aeb02ac769bad3f7045786b3 Mon Sep 17 00:00:00 2001 From: Vasily Date: Sat, 5 Jan 2019 20:31:34 +0100 Subject: [PATCH] Add exit condition checking to build, deploy, package cmd files Without the line checking the exit code, the script will not fail on a failure from a subsystem. --- build_scripts/win/build.cmd | 3 +++ build_scripts/win/deploy.cmd | 3 +++ build_scripts/win/package.cmd | 3 +++ 3 files changed, 9 insertions(+) diff --git a/build_scripts/win/build.cmd b/build_scripts/win/build.cmd index fcc281e..44c3c1c 100644 --- a/build_scripts/win/build.cmd +++ b/build_scripts/win/build.cmd @@ -1,5 +1,8 @@ @ECHO OFF python build.py build +IF ERRORLEVEL 1 EXIT /B 1 call test.bat +IF ERRORLEVEL 1 EXIT /B 1 del test.bat +IF ERRORLEVEL 1 EXIT /B 1 PAUSE diff --git a/build_scripts/win/deploy.cmd b/build_scripts/win/deploy.cmd index a2d7a0b..cdbaad9 100644 --- a/build_scripts/win/deploy.cmd +++ b/build_scripts/win/deploy.cmd @@ -1,5 +1,8 @@ @ECHO OFF python build.py deploy +IF ERRORLEVEL 1 EXIT /B 1 call test.bat +IF ERRORLEVEL 1 EXIT /B 1 del test.bat +IF ERRORLEVEL 1 EXIT /B 1 PAUSE diff --git a/build_scripts/win/package.cmd b/build_scripts/win/package.cmd index 7cf2bbc..76ced5c 100644 --- a/build_scripts/win/package.cmd +++ b/build_scripts/win/package.cmd @@ -1,5 +1,8 @@ @ECHO OFF python build.py package +IF ERRORLEVEL 1 EXIT /B 1 call test.bat +IF ERRORLEVEL 1 EXIT /B 1 del test.bat +IF ERRORLEVEL 1 EXIT /B 1 PAUSE