diff --git a/cmtc/src/main/scala/coursemgmt/client/command/Install.scala b/cmtc/src/main/scala/coursemgmt/client/command/Install.scala index 8b0bada5..c035667b 100644 --- a/cmtc/src/main/scala/coursemgmt/client/command/Install.scala +++ b/cmtc/src/main/scala/coursemgmt/client/command/Install.scala @@ -82,6 +82,7 @@ object Install: (targetFolder.exists, forceDelete) match { case (false, _) | (true, true) => sbtio.copyDirectory(tmpDir / project, targetFolder) + sbtio.delete(tmpDir / project) if (deleteZipAfterInstall) { sbtio.delete(zipFile.value) }