fix
This commit is contained in:
parent
19b2afcab1
commit
da1eed7786
|
@ -33,10 +33,11 @@ all_template.each do |folder|
|
||||||
texts = File.read(folder+'partial/_head.html.erb')
|
texts = File.read(folder+'partial/_head.html.erb')
|
||||||
insert_flag = 0
|
insert_flag = 0
|
||||||
if texts.include?(check_texts)
|
if texts.include?(check_texts)
|
||||||
texts.gsub(check_texts,edit_texts)
|
texts = texts.gsub(check_texts,edit_texts)
|
||||||
insert_flag = 1
|
insert_flag = 1
|
||||||
end
|
end
|
||||||
if insert_flag == 1
|
if insert_flag == 1
|
||||||
|
puts 'editing _head.html.erb'
|
||||||
f = File.open(folder+'partial/_head.html.erb','w')
|
f = File.open(folder+'partial/_head.html.erb','w')
|
||||||
f.write(texts)
|
f.write(texts)
|
||||||
f.close
|
f.close
|
||||||
|
|
Loading…
Reference in New Issue