Skip to content

Commit 951b60d

Browse files
committed
catch failure in build.fsx
1 parent 558bb68 commit 951b60d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Target "GitHubRelease" (fun _ ->
217217
// .NET CLI and .NET Core
218218

219219
// TODO: rework next line when workaround is available
220-
let isDotnetCliInstalled = buildServer = BuildServer.LocalBuild && Shell.Exec("dotnet", "--info") = 0
220+
let isDotnetCliInstalled = (try buildServer = BuildServer.LocalBuild && Shell.Exec("dotnet", "--info") = 0 with _ -> false)
221221
let assertExitCodeZero x = if x = 0 then () else failwithf "Command failed with exit code %i" x
222222

223223
Target "DotnetCliBuild" (fun _ ->

0 commit comments

Comments
 (0)