diff options
author | Nikolay Tatarinov <5min4eq.unity@gmail.com> | 2018-01-02 01:44:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-02 01:44:28 +0300 |
commit | f5a5de94c499d14bbcde848fa218afebde8b3617 (patch) | |
tree | 00927e078f0b619e6f2350c68b6f3f64836049db /core/src/main/scala | |
parent | ef29d5a0db250232b5d4dd8e947e367b03ecaf39 (diff) | |
download | mill-f5a5de94c499d14bbcde848fa218afebde8b3617.tar.gz mill-f5a5de94c499d14bbcde848fa218afebde8b3617.tar.bz2 mill-f5a5de94c499d14bbcde848fa218afebde8b3617.zip |
return non zero return code when task fails in batch mode (#97)
Diffstat (limited to 'core/src/main/scala')
-rw-r--r-- | core/src/main/scala/mill/Main.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/scala/mill/Main.scala b/core/src/main/scala/mill/Main.scala index c2439f29..c506cf43 100644 --- a/core/src/main/scala/mill/Main.scala +++ b/core/src/main/scala/mill/Main.scala @@ -60,7 +60,8 @@ object Main { runner.printInfo("Loading...") runner.runRepl() } else { - runner.runScript(pwd / "build.sc", leftoverArgs) + val result = runner.runScript(pwd / "build.sc", leftoverArgs) + System.exit(if(result) 0 else 1) } } } |