This commit is contained in:
BOHUNG 2020-01-13 19:19:11 +08:00
parent 19b2afcab1
commit da1eed7786
1 changed files with 2 additions and 1 deletions

View File

@ -33,10 +33,11 @@ all_template.each do |folder|
texts = File.read(folder+'partial/_head.html.erb')
insert_flag = 0
if texts.include?(check_texts)
texts.gsub(check_texts,edit_texts)
texts = texts.gsub(check_texts,edit_texts)
insert_flag = 1
end
if insert_flag == 1
puts 'editing _head.html.erb'
f = File.open(folder+'partial/_head.html.erb','w')
f.write(texts)
f.close