write to file

This commit is contained in:
chiu 2020-02-25 23:35:34 +08:00
parent 7cc4f19679
commit 020ffce16c
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ all_template.each do |folder|
if !texts.include? "$theme-white"
texts = "$theme-white: #fff;\n" + texts
end
File.open(filename,'w') do |f|
f.write texts
end
tp_text = File.read(folder+'assets/stylesheets/template/template.scss') rescue ''
tp_last_text = tp_text
tp_text.scan(/@import.*http.*;/).each do |pat|