From 594460c6d9ec43396d43c7ff2fe01eb2b04a9069 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Sat, 14 Aug 2021 21:48:05 -0400 Subject: [PATCH] Maybe fix tmp file deletion --- buildSrc/src/main/kotlin/TachideskTasks.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/buildSrc/src/main/kotlin/TachideskTasks.kt b/buildSrc/src/main/kotlin/TachideskTasks.kt index 8791a0122..c39b27f6a 100644 --- a/buildSrc/src/main/kotlin/TachideskTasks.kt +++ b/buildSrc/src/main/kotlin/TachideskTasks.kt @@ -238,6 +238,7 @@ fun TaskContainerScope.registerTachideskTasks(project: Project) { register(deleteTmpFolderTask) { mustRunAfter(modifyTachideskJarManifest) delete(tmpPath) + onlyIf { file(tmpPath).let { it.exists() && it.canWrite() } } doFirst { require(file(finalJar).exists()) { "Tachidesk.jar does not exist" }