Skip to content

Commit d7358bd

Browse files
committed
--version cosmetics
1 parent 7941c5c commit d7358bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/kscript/app/Kscript.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ fun main(args: Array<String>) {
7878
info(USAGE)
7979
versionCheck()
8080
val systemInfo = evalBash("kotlin -version").stdout
81-
info("Kotlin : " + systemInfo.split('(')[0].removePrefix("Kotlin version"))
82-
info("Java : " + systemInfo.split('(')[1].split('-')[0])
81+
info("Kotlin : " + systemInfo.split('(')[0].removePrefix("Kotlin version").trim())
82+
info("Java : " + systemInfo.split('(')[1].split('-')[0].trim())
8383
quit(0)
8484
}
8585

0 commit comments

Comments
 (0)