fix
This commit is contained in:
parent
25e3ae7fde
commit
65b96b9fdc
|
@ -29,14 +29,14 @@ all_template.each do |folder|
|
||||||
puts 'error copy'
|
puts 'error copy'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
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.gsub(check_texts,edit_texts)
|
||||||
insert_flag = 1
|
insert_flag = 1
|
||||||
end
|
end
|
||||||
if insert_flag == 1
|
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.write(texts)
|
||||||
f.close
|
f.close
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue