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 17, 2023
1 parent e75db8a commit 0fbd184
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 0fbd184

Please sign in to comment.