Skip to content

Commit 3cbd66a

Browse files
webwarrior-wsknocte
authored andcommitted
build.cmd: abort if interim step fails
So that it gets propagated properly and gets caught by the CI build.
1 parent 30828ab commit 3cbd66a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

build.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
rem change the target via -t, e.g.:
33
rem build -t PackNuget
44
cls
5-
dotnet tool restore
6-
dotnet paket restore
5+
dotnet tool restore || exit /b 1
6+
dotnet paket restore || exit /b 1
77
rem set FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION=8.0
88
rem Build with Fake or FSI:
9-
dotnet fake run build.fsx %*
9+
dotnet fake run build.fsx %* || exit /b 1
1010
rem dotnet fsi build.fsx %*

0 commit comments

Comments
 (0)