Update scaffold.rb
This commit is contained in:
parent
9b956ee6e5
commit
c3c0b68ac8
@ -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
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user