diff options
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; |