This commit is contained in:
BoHung Chiu 2022-03-17 15:34:21 +08:00
parent e150225ed6
commit 020150ecd2
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ if bundle_update_flag
all_template.each do |folder|
if !folder.include?('mobile')
if Dir.exist?("#{folder}modules/event_news_mod/event_news")
Bundler.with_clean_env{system ("mv -f #{folder}modules/event_news_mod/event_news/* #{folder}modules/event_news_mod/. && rm -rf #{folder}modules/event_news_mod/event_news")}
Bundler.with_clean_env{system ("cp -rf #{folder}modules/event_news_mod/event_news/* #{folder}modules/event_news_mod/. && rm -rf #{folder}modules/event_news_mod/event_news")}
end
info_json_file = "#{folder}modules/event_news_mod/info.json"
if File.exist?(info_json_file)

View File

@ -104,7 +104,7 @@ module EventNewsMod
template_path = Rails.root.to_s + '/app/templates'
all_template = Dir.glob(template_path+'/*/')
all_template.each do |folder|
Bundler.with_clean_env{system ("mkdir -p #{folder}modules/event_news_mod; mv -f #{folder}modules/event_news/* #{folder}modules/event_news_mod/.")}
Bundler.with_clean_env{system ("mkdir -p #{folder}modules/event_news_mod; cp -rf #{folder}modules/event_news/* #{folder}modules/event_news_mod/. && rm -rf #{folder}modules/event_news_mod/event_news")}
end
end
module_label "event_news.event_news"