check if mongoid updated

This commit is contained in:
邱博亞 2021-11-21 10:55:04 +08:00
parent c11bc42440
commit 0fa9afb5f0
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ if bundle_update_flag
Bundler.with_clean_env{%x[cp -f '#{app_path}'/temp_file/Gemfile '#{env_pwd}'/Gemfile]}
if system("cd #{env_pwd} && git branch --contains '2f23511469505bd114df2c863a477a8730bcdefa'") #update mongoid version
command4 = ""
puts 'mongoid has been updated!'
else
command4 = ";cp -rf #{app_path}/temp_file/app #{env_pwd};cp -rf #{app_path}/temp_file/config #{env_pwd}"
end