Fix bug.
This commit is contained in:
parent
e150225ed6
commit
020150ecd2
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue