Skip to content

Commit

Permalink
Merge pull request #1502 from b0urb4k1/master
Browse files Browse the repository at this point in the history
Make ExitCode variable
  • Loading branch information
forki authored Mar 29, 2017
2 parents 116f266 + cd7a2aa commit 8a0082b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/FakeLib/TargetHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ let WriteTaskTimeSummary total =

module ExitCode =
let exitCode = ref 0
let private changeExitCodeIfErrorOccured() = if errors <> [] then Environment.ExitCode <- 42; ExitCode.exitCode := 42
let mutable Value = 42
let private changeExitCodeIfErrorOccured() = if errors <> [] then Environment.ExitCode <- ExitCode.Value; ExitCode.exitCode := ExitCode.Value

/// [omit]
let isListMode = hasBuildParam "list"
Expand Down

0 comments on commit 8a0082b

Please sign in to comment.