This commit is contained in:
邱博亞 2021-11-27 14:42:50 +08:00
parent 186dad508d
commit c2d616d95e
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ if bundle_update_flag
end
Bundler.with_clean_env{%x[cp -f '#{env_pwd}'/Gemfile '#{env_pwd}'/Gemfile.bak123]}
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
check_version = %x[cd #{env_pwd} && git branch --contains '2f23511469505bd114df2c863a477a8730bcdefa']
if check_version.strip != '' #update mongoid version
command4 = ""
puts 'mongoid has been updated!'
else