Pi66

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

← back to log

fix: exit after successful build validation

author: pi66
date: 2026-07-22 15:54
hash: 295ef1f14d9e6019a90a9447e4801c205f0208d8

Diffstat:

M

src/build.py
1 ++++++++++++++++++++++++++++++
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
diff --git a/src/build.py b/src/build.py
index a3b511e..adc35a0 100644
--- a/src/build.py
+++ b/src/build.py
@@ -191,6 +191,7 @@ def validate_build(config, plugins):
             warn(e)
         raise Exception(f"Validation failed with {len(errors)} error(s)")
     info("Validation passed.")
+    exit(0)

 def build_if_file(project_path, file):
     if project_path: