fix
This commit is contained in:
parent
25e3ae7fde
commit
65b96b9fdc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue