This commit is contained in:
BoHung Chiu 2022-03-29 15:26:00 +08:00
parent 119c963d82
commit afd86938ac
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ if bundle_update_flag
if !folder.include?('mobile')
if Dir.exist?("#{folder}modules/event_news")
Bundler.with_clean_env{system ("cp -rf #{folder}modules/event_news #{folder}modules/event_news_mod && rm -rf #{folder}modules/event_news")}
elsif Dir.exist?("#{folder}modules/event_news_mod/event_news")
end
if Dir.exist?("#{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"