From 12308ea6f84f111ca025d9859f4f2c8f964f5862 Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Thu, 26 Mar 2020 18:35:22 +0800 Subject: [PATCH] fix error --- patchfile.gemspec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/patchfile.gemspec b/patchfile.gemspec index ee6980e..abf8deb 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -32,12 +32,11 @@ f.write(@file_text) f.close puts "finish change patchfile in #{ENV['PWD']}/app/views/shared" check_text = ' {{site_name}}' -change_text = ' - - {{site_name}}' +change_text = ' {{site_name}}' all_template.each do |folder| if !folder.include?('mobile') begin + puts "changing header.html.erb in #{folder}/home/header.html.erb" if folder.split('/')[-1] != 'mobile' unity_text = File.read(folder+'home/header.html.erb') rescue '' if unity_text.split(/\n/).join.strip.empty? @@ -55,7 +54,7 @@ all_template.each do |folder| end end rescue => e - puts "#{e.inspect}\nnot found #{folder}assets/stylesheets/template/base/_variables.scss" + puts "#{e.inspect}\nnot found #{folder}home/header.html.erb" end end end