diff --git a/buildSrc/src/main/kotlin/TachideskTasks.kt b/buildSrc/src/main/kotlin/TachideskTasks.kt index 8791a01225..c39b27f6a6 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" }