From c3c0b68ac8eeccbefcc20a1bb7a4668cbfc116f0 Mon Sep 17 00:00:00 2001 From: ZhgChgLi <33706588+zhgchgli0718@users.noreply.github.com> Date: Sun, 27 Oct 2024 10:48:59 +0800 Subject: [PATCH] Update scaffold.rb --- scaffold.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scaffold.rb b/scaffold.rb index 7a5e7ae..e62c3af 100644 --- a/scaffold.rb +++ b/scaffold.rb @@ -17,7 +17,7 @@ destination_dir = "./_output/" # Clean _output folder if Dir.exist?(destination_dir) Dir.foreach(destination_dir) do |file| - next if file == '.' || file == '..' + next if file == '.' || file == '..' || file == 'AUTO_GEN_FOLDER_DO_NOT_EDIT_FILE_HERE' file_path = File.join(destination_dir, file) if File.file?(file_path) @@ -94,4 +94,4 @@ rendered_content = liquid_template.render(settings) File.open(template_file, 'w') do |file| file.write(rendered_content) -end \ No newline at end of file +end