Skip to content

Commit

Permalink
Fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Jul 14, 2024
1 parent c16c16a commit 40f0724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildSrc/src/main/kotlin/versioning.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ private fun Project.runCommand(cmd: String, fallback: String? = null): String {
}
.run {
val error = errorStream.bufferedReader().readText().trim()
if (error.isEmpty()) inputStream.bufferedReader().readText().trim()
if (error.isEmpty()) return inputStream.bufferedReader().readText().trim()
logger.warn("Failed to execute command '$cmd': $error")
if (fallback != null) return fallback
throw IOException(error)
}
Expand Down

0 comments on commit 40f0724

Please sign in to comment.