Fix bug.
This commit is contained in:
parent
119c963d82
commit
afd86938ac
|
@ -15,7 +15,8 @@ if bundle_update_flag
|
||||||
if !folder.include?('mobile')
|
if !folder.include?('mobile')
|
||||||
if Dir.exist?("#{folder}modules/event_news")
|
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")}
|
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")}
|
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
|
end
|
||||||
info_json_file = "#{folder}modules/event_news_mod/info.json"
|
info_json_file = "#{folder}modules/event_news_mod/info.json"
|
||||||
|
|
Loading…
Reference in New Issue