Fix copy file bug.

This commit is contained in:
BoHung Chiu 2022-03-16 15:19:46 +08:00
parent c624b5c216
commit 6117ec6f09
1 changed files with 1 additions and 2 deletions

View File

@ -15,8 +15,7 @@ if bundle_update_flag
if !folder.include?('mobile')
info_json_file = "#{folder}modules/event_news_mod/info.json"
if File.exist?(info_json_file)
Bundler.with_clean_env{system ('cp -f '+ app_path + '/modules/event_news_mod
/show.html.erb ' + "#{folder}modules/event_news_mod/.")}
Bundler.with_clean_env{system ('cp -f '+ app_path + '/modules/event_news_mod/show.html.erb ' + "#{folder}modules/event_news_mod/.")}
update_event_news_template(folder)
begin
file_text = File.read(info_json_file) rescue ""