This commit is contained in:
BOHUNG 2020-01-13 19:15:43 +08:00
parent 25e3ae7fde
commit 65b96b9fdc
1 changed files with 2 additions and 2 deletions

View File

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