diff options
| author | tsne <tsne.dev@outlook.com> | 2026-06-19 13:09:03 +0200 |
|---|---|---|
| committer | tsne <tsne.dev@outlook.com> | 2026-06-21 08:51:45 +0200 |
| commit | 5ba038c3eb07fc94fc8d6f46b451f552bfc121a4 (patch) | |
| tree | 4bc57b4616943f5ef014ae2081c3c680a506b6ef /src/template.zig | |
| parent | upgrade to zig 0.16 (diff) | |
| download | porteur-5ba038c3eb07fc94fc8d6f46b451f552bfc121a4.tar.gz | |
Diffstat (limited to 'src/template.zig')
| -rw-r--r-- | src/template.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/template.zig b/src/template.zig index 89521e3..3e7f530 100644 --- a/src/template.zig +++ b/src/template.zig @@ -147,7 +147,10 @@ pub const Template = struct { try render_files_recursively(env, dest_root, src_root, entry_subpath.name(), tmpl_confs); }, .file => { - env.info("writing template file {s}", .{dest_path.name()[dest_root.len + 1 ..]}); + const filename = dest_path.name()[dest_root.len + 1 ..]; + if (std.mem.eql(u8, filename, config_filename)) return; + + env.info("writing template file {s}", .{filename}); const input = try fs.read_file(env.allocator, &src_path); var output_buf: [512]u8 = undefined; |