From 3d966b4fb6acf1abe6878469f4ead3465476b44b Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Thu, 1 Aug 2024 11:25:05 +0200 Subject: [PATCH] Delete other license files --- repoman/src/main/kotlin/org/metaborg/repoman/GenerateCommand.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repoman/src/main/kotlin/org/metaborg/repoman/GenerateCommand.kt b/repoman/src/main/kotlin/org/metaborg/repoman/GenerateCommand.kt index 99f4ff1..be2fd3c 100644 --- a/repoman/src/main/kotlin/org/metaborg/repoman/GenerateCommand.kt +++ b/repoman/src/main/kotlin/org/metaborg/repoman/GenerateCommand.kt @@ -104,8 +104,10 @@ object GenerateCommand: CliktCommand( val generate = meta.files.license.generate val update = meta.files.license.update || forceUpdate if (meta.files.license.markdown) { + if (update) repoDir.resolve("LICENSE").deleteIfExists() generate("LICENSE.md", generate, update) } else { + if (update) repoDir.resolve("LICENSE.md").deleteIfExists() generate("LICENSE", generate, update) } }