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 4d6d5b6 commit 2ca51dcCopy full SHA for 2ca51dc
src/main/kotlin/kscript/app/Kscript.kt
@@ -52,7 +52,10 @@ Website : https://github.com/holgerbrandl/kscript
52
""".trim()
53
54
val KSCRIPT_CACHE_DIR = File(System.getenv("HOME")!!, ".kscript")
55
-val SCRIPT_TEMP_DIR = createTempDir()
+
56
+// use lazy here prevent empty dirs for regular scripts https://github.com/holgerbrandl/kscript/issues/130
57
+val SCRIPT_TEMP_DIR by lazy { createTempDir() }
58
59
60
fun main(args: Array<String>) {
61
// skip org.docopt for version and help to allow for lazy version-check
0 commit comments