From eedad69f72bb07bf0347b42851ef5c5356cdc9b2 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 6 Jul 2024 12:21:45 -0300 Subject: [PATCH] Fix bug --- src/runtime.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime.cr b/src/runtime.cr index af4f61e..af6023c 100644 --- a/src/runtime.cr +++ b/src/runtime.cr @@ -77,6 +77,8 @@ module Runtime # file is like "#{base}/foo" # dst is like #{dst_path}/foo dst = Path[dst_path] / Path[file].relative_to(base_path) + # Make sure we have dest dir + Dir.mkdir_p dst.dirname unless File.directory? dst.dirname # Render templated files if file.ends_with? ".j2" dst = dst.sibling(dst.stem)