lib/copy: fix, copying the content of tempate directory, not the directory itself

This commit is contained in:
Johannes Kirschbauer
2025-07-11 18:51:03 +02:00
parent f7671c8f0b
commit 615607730d

View File

@@ -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