Skip to content

Commit 4fcccb7

Browse files
committed
Update bump script following libraries.toml changes
1 parent 95d0e28 commit 4fcccb7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/bump-kotlin-nightlies.main.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ fun bumpVersions() {
2626
file.writeText(
2727
file.readText()
2828
.replaceVersion("kotlin-plugin", kotlinVersion)
29-
.replaceVersion("kotlin-plugin-max", kotlinVersion)
3029
.replaceVersion("ksp", kspVersion)
3130
)
3231
}
@@ -77,7 +76,9 @@ fun getLatestVersion(url: String, prefix: String? = null): String {
7776

7877
fun runCommand(vararg args: String): String {
7978
println("Running command: '${args.joinToString(" ")}'")
80-
val builder = ProcessBuilder(*args).redirectError(ProcessBuilder.Redirect.INHERIT)
79+
val builder = ProcessBuilder(*args)
80+
.redirectErrorStream(true)
81+
.redirectError(ProcessBuilder.Redirect.INHERIT)
8182
val process = builder.start()
8283
val output = StringBuilder()
8384
while (true) {
@@ -87,7 +88,7 @@ fun runCommand(vararg args: String): String {
8788
}
8889
val ret = process.waitFor()
8990
if (ret != 0) {
90-
throw Exception("command ${args.joinToString(" ")} failed:\n$output")
91+
throw Exception("command ${args.joinToString(" ")} failed (ret=$ret):\n$output")
9192
}
9293
return output.toString().trim()
9394
}

0 commit comments

Comments
 (0)