Pi66

merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi

← back to log

fix: remove automatic release destination cleanup

author: pi66
date: 2026-07-22 15:56
hash: 9b94856e07b1311f7ee35d082c7c2fbbfaafc5fc

Diffstat:

M

src/build.py
4 ------------------------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
diff --git a/src/build.py b/src/build.py
index adc35a0..a608e14 100644
--- a/src/build.py
+++ b/src/build.py
@@ -218,10 +218,6 @@ def build(mode, project_path, file, validate=False, force=False):

         if validate:
             validate_build(config, plugins)
-        if mode == "release":
-            import shutil
-            if path.exists(dest):
-                shutil.rmtree(dest)

         hook_call("on_build_start", config)
         walk_and_build(config, plugins, dest, force_all=force)