From dd47f9c66fcd5c981fc303802cb5a93fdb1f89f7 Mon Sep 17 00:00:00 2001 From: buenosairesam Date: Tue, 27 Jan 2026 01:11:42 -0300 Subject: [PATCH] env merge fix --- build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 09e5b67..e1ee714 100644 --- a/build.py +++ b/build.py @@ -187,7 +187,12 @@ def build_managed(output_dir: Path, cfg_name: str, config: dict): if item.is_file(): copy_path(item, managed_dir / item.name, quiet=True) elif item.is_dir(): - copy_path(item, managed_dir / item.name) + target = managed_dir / item.name + if target.exists(): + # Merge into existing repo directory + merge_into(item, target) + else: + copy_path(item, target) # Scripts from ctrl/ -> output_dir/ctrl/ (sibling of managed, link, soleprint) room_ctrl = room_cfg / "ctrl"