This commit is contained in:
chiu 2020-02-25 20:49:58 +08:00
parent 4bdff6a20b
commit 6e09325680
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ all_template.each do |folder|
tp_last_text = tp_last_text.sub(pat,pat1)
end
end
if tp_last_text != tp_text
File.open(folder+'assets/stylesheets/template/template.scss','w') do |f|
f.write tp_last_text
end
end
if texts.split(regex_pattern).count > 1
auto_save_text = texts.scan(regex_pattern).join('')
File.open(folder+'assets/stylesheets/template/base/_autobackup.bak', 'a') do |file|