try
This commit is contained in:
parent
4bdff6a20b
commit
6e09325680
|
@ -48,6 +48,11 @@ all_template.each do |folder|
|
||||||
tp_last_text = tp_last_text.sub(pat,pat1)
|
tp_last_text = tp_last_text.sub(pat,pat1)
|
||||||
end
|
end
|
||||||
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
|
if texts.split(regex_pattern).count > 1
|
||||||
auto_save_text = texts.scan(regex_pattern).join('')
|
auto_save_text = texts.scan(regex_pattern).join('')
|
||||||
File.open(folder+'assets/stylesheets/template/base/_autobackup.bak', 'a') do |file|
|
File.open(folder+'assets/stylesheets/template/base/_autobackup.bak', 'a') do |file|
|
||||||
|
|
Loading…
Reference in New Issue