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 59e764f commit 9d5fdb3Copy full SHA for 9d5fdb3
src/main/kotlin/kscript/app/appdir/Cache.kt
@@ -26,7 +26,7 @@ class Cache(private val path: Path) {
26
val directory = path.resolve("jar_$digest")
27
val cachedJarArtifact = directory.resolve("jarArtifact.descriptor")
28
29
- return if (directory.exists()) {
+ return if (cachedJarArtifact.exists()) {
30
val jarArtifactLines = cachedJarArtifact.readText().lines()
31
JarArtifact(Paths.get(jarArtifactLines[0]), jarArtifactLines[1])
32
} else {
0 commit comments