We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7941c5c commit d7358bdCopy full SHA for d7358bd
src/main/kotlin/kscript/app/Kscript.kt
@@ -78,8 +78,8 @@ fun main(args: Array<String>) {
78
info(USAGE)
79
versionCheck()
80
val systemInfo = evalBash("kotlin -version").stdout
81
- info("Kotlin : " + systemInfo.split('(')[0].removePrefix("Kotlin version"))
82
- info("Java : " + systemInfo.split('(')[1].split('-')[0])
+ info("Kotlin : " + systemInfo.split('(')[0].removePrefix("Kotlin version").trim())
+ info("Java : " + systemInfo.split('(')[1].split('-')[0].trim())
83
quit(0)
84
}
85
0 commit comments