From 1a988ca94d45ce1c388df1340d82b5c475088566 Mon Sep 17 00:00:00 2001 From: Bohung Date: Thu, 18 Nov 2021 19:11:49 +0800 Subject: [PATCH] Fix bug. --- seminar.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar.gemspec b/seminar.gemspec index d5c0724..2bf91c6 100644 --- a/seminar.gemspec +++ b/seminar.gemspec @@ -18,7 +18,7 @@ all_template.each do |folder| if !folder.include?('mobile') info_json_file = "#{folder}modules/seminar/info.json" if File.exist?(info_json_file) - Bundler.with_clean_env{system ('cp -f '+ app_path + '/modules/seminar/show.html.erb ' + "#{folder}modules/seminar/.")} + #Bundler.with_clean_env{system ('cp -f '+ app_path + '/modules/seminar/show.html.erb ' + "#{folder}modules/seminar/.")} begin file_text = File.read(info_json_file) rescue "" encode_file_text = file_text.encode("UTF-8", "UTF-8", invalid: :replace, replace: "???")