Skip to content

Commit

Permalink
Fix redirect bash errors
Browse files Browse the repository at this point in the history
Fix/113 redirect bash errors
  • Loading branch information
PierreLeresteux authored Jul 16, 2020
2 parents cf0b0df + 2a5dbcc commit 45884c5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class BashEngine(private val logger: KLogger) {
.directory(File(workingDir))
.redirectOutput(Redirect.PIPE)
.redirectError(Redirect.PIPE)
.redirectErrorStream(true)
.start().apply { waitFor(timeout.toMillis(), MILLISECONDS) }

val out = proc.inputStream.bufferedReader().readText()
Expand Down

0 comments on commit 45884c5

Please sign in to comment.