Skip to content

Commit

Permalink
Fail on non-zero command exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMayes committed Oct 16, 2023
1 parent a85f3a9 commit f795a12
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ private fun execute(command: String, args: Array<String>, input: String? = null)
},
operation("wait") {
process.waitFor()
if (process.exitValue() != 0) {
error("Non-zero exit code (${process.exitValue()}).")
}
},
)

Expand Down

0 comments on commit f795a12

Please sign in to comment.