Skip to content

Commit e1dd80f

Browse files
committed
fixed #40: interactive is not correctly started when using heredoc script as input
1 parent 04b2be9 commit e1dd80f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import java.nio.file.Files
1111
import java.nio.file.Paths
1212
import java.security.MessageDigest
1313
import javax.xml.bind.DatatypeConverter
14+
import kotlin.system.exitProcess
1415

1516

1617
/**
@@ -37,7 +38,7 @@ Use '--clear-cache' to wipe cached script jars and urls
3738
Use '--self-update' to wipe cached script jars and urls
3839
3940
Options:
40-
-i --interactive Create interactive shell with DEPS as declared in script
41+
-i --interactive Create interactive shell with dependencies as declared in script
4142
4243
Copyright : 2017 Holger Brandl
4344
License : MIT
@@ -120,6 +121,7 @@ fun main(args: Array<String>) {
120121
System.err.println("kotlinc ${kotlinOpts} -classpath '${classpath}'")
121122

122123
println("kotlinc ${kotlinOpts} -classpath ${classpath}")
124+
exitProcess(0)
123125
}
124126

125127
val scriptFileExt = scriptFile.extension

0 commit comments

Comments
 (0)