From 615607730de7fd5ebf006f87fb14d9a3f7ffd88a Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Fri, 11 Jul 2025 18:51:03 +0200 Subject: [PATCH] lib/copy: fix, copying the content of tempate directory, not the directory itself --- pkgs/clan-cli/clan_lib/templates/filesystem.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_lib/templates/filesystem.py b/pkgs/clan-cli/clan_lib/templates/filesystem.py index 1e18b57c0..aa2779f21 100644 --- a/pkgs/clan-cli/clan_lib/templates/filesystem.py +++ b/pkgs/clan-cli/clan_lib/templates/filesystem.py @@ -35,5 +35,7 @@ def copy_from_nixstore(src: Path, dest: Path) -> None: Uses `cp -r` to recursively copy the directory. Ensures the destination directory is writable by the user. """ - run(["cp", "-r", str(src), str(dest)]) - run(["chmod", "-R", "u+w", str(dest)]) + run(["cp", "-r", str(src / "."), str(dest)]) # Copy contents of src to dest + run( + ["chmod", "-R", "u+w", str(dest)] + ) # Ensure the destination is writable by the user