Skip to content

Commit

Permalink
Fix init script uploading (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
skrugly authored Jun 2, 2022
1 parent c283831 commit 0ceebb1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugin/src/main/kotlin/Mirakle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,11 @@ fun Gradle.uploadInitScripts(upload: Exec, execute: Exec, download: Exec) {
}
}

upload.doLast {
if (initScriptsFolder.exists()) {
initScriptsFolder.deleteRecursively()
gradle.taskGraph.afterTask { task ->
if (task == upload) {
if (initScriptsFolder.exists()) {
initScriptsFolder.deleteRecursively()
}
}
}

Expand Down

0 comments on commit 0ceebb1

Please sign in to comment.