Skip to content

Commit 09a625f

Browse files
authored
- Fix batch script exits (#295)
1 parent 396f172 commit 09a625f

7 files changed

+13
-0
lines changed

scripts/build_project.bat

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ SET buildMode=%1
1414
@ECHO %buildMode%
1515
dotnet msbuild -property:Configuration="%buildMode%" -target:Rebuild -restore || GOTO :commandFailed
1616

17+
EXIT /B 0
18+
1719
:commandFailed
1820
@ECHO Command failed.
1921
GOTO :exitWithError

scripts/delete_old_assemblies.bat

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
@ECHO Cleaning old files...
88
@RD /S /Q lib
99
DEL /S /Q /F *.nupkg
10+
11+
EXIT /B 0

scripts/install_cert.bat

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ SET containerName=%3
1616
@ECHO (Re-)Installing certificate to system...
1717
sn -d %containerName%
1818
SnInstallPfx %certFile% %certPass% %containerName% || GOTO :commandFailed
19+
EXIT /B 0
1920

2021
:commandFailed
2122
@ECHO Command failed.

scripts/lint_scripts.bat

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ FOR /R scripts %%F IN (*.bat) DO (
2222
BatCodeCheck.exe "%%F" /LS
2323
)
2424

25+
EXIT /B 0
26+
2527
:commandFailed
2628
@ECHO Command failed.
2729
GOTO :exitWithError

scripts/pack_nuget.bat

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
@ECHO Generating NuGet package...
1111
nuget pack %projectName%.nuspec || GOTO :commandFailed
1212

13+
EXIT /B 0
14+
1315
:commandFailed
1416
@ECHO Command failed.
1517
GOTO :exitWithError

scripts/sign_dlls.bat

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ FOR /R "lib" %%F IN (*.dll) DO (
1919
signtool sign /f %certFile% /p %certPass% /v /tr http://timestamp.digicert.com?alg=sha256 /td SHA256 /fd SHA256 "%%F" || GOTO :commandFailed
2020
)
2121

22+
EXIT /B 0
23+
2224
:commandFailed
2325
@ECHO Command failed.
2426
GOTO :exitWithError

scripts/sign_nuget.bat

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ FOR /R %%F IN (*.nupkg) DO (
2222
nuget sign "%%F" -Timestamper http://timestamp.digicert.com -CertificatePath "%certFile%" -CertificatePassword "%certPass%" || GOTO :commandFailed
2323
)
2424

25+
EXIT /B 0
26+
2527
:commandFailed
2628
@ECHO Command failed.
2729
GOTO :exitWithError

0 commit comments

Comments
 (0)