Skip to content

Commit

Permalink
add waitFor() to cli process
Browse files Browse the repository at this point in the history
  • Loading branch information
LGala committed Nov 19, 2022
1 parent d9e7c04 commit e600ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import java.io.FileNotFoundException

fun main(args: Array<String>) {
try {
val cliPath = "$CLI_CORE_DIR_PATH/${cliVersionToUse()}.jar"
val path = "$CLI_CORE_DIR_PATH/${cliVersionToUse()}.jar"

ProcessBuilder(listOf("java", "-jar", cliPath) + args).inheritIO().start()
ProcessBuilder(listOf("java", "-jar", path) + args).inheritIO().start().waitFor()
} catch (e: Throwable) {
println(e.message)
}
Expand Down

0 comments on commit e600ff8

Please sign in to comment.