diff --git a/event_news_mod.gemspec b/event_news_mod.gemspec index b97f752..6e11488 100644 --- a/event_news_mod.gemspec +++ b/event_news_mod.gemspec @@ -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"