write to file
This commit is contained in:
parent
7cc4f19679
commit
020ffce16c
|
@ -38,6 +38,9 @@ all_template.each do |folder|
|
||||||
if !texts.include? "$theme-white"
|
if !texts.include? "$theme-white"
|
||||||
texts = "$theme-white: #fff;\n" + texts
|
texts = "$theme-white: #fff;\n" + texts
|
||||||
end
|
end
|
||||||
|
File.open(filename,'w') do |f|
|
||||||
|
f.write texts
|
||||||
|
end
|
||||||
tp_text = File.read(folder+'assets/stylesheets/template/template.scss') rescue ''
|
tp_text = File.read(folder+'assets/stylesheets/template/template.scss') rescue ''
|
||||||
tp_last_text = tp_text
|
tp_last_text = tp_text
|
||||||
tp_text.scan(/@import.*http.*;/).each do |pat|
|
tp_text.scan(/@import.*http.*;/).each do |pat|
|
||||||
|
|
Loading…
Reference in New Issue