This commit is contained in:
BOHUNG 2020-04-01 18:13:57 +08:00
parent b2c7bf66a1
commit 622eb5899a
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ change_html_new = 'html.gsub("%7B%7Blogo_url_1%7D%7D",((site.site_logo_1.url.nil
begin begin
@file_text = File.read(ENV['PWD']+'/app/helpers/application_helper.rb') @file_text = File.read(ENV['PWD']+'/app/helpers/application_helper.rb')
File.open(ENV['PWD']+'/app/helpers/application_helper.rb','w') do |f| File.open(ENV['PWD']+'/app/helpers/application_helper.rb','w') do |f|
f.chmod 0777
if @file_text.include?(change_html_old) if @file_text.include?(change_html_old)
@file_text = @file_text.gsub(change_html_old,change_html_new) @file_text = @file_text.gsub(change_html_old,change_html_new)
f.write(@file_text) f.write(@file_text)