Fix bug for older git version.

This commit is contained in:
BoHung Chiu 2021-12-02 21:44:09 +08:00
parent 8f66372f83
commit 7a9f85ebc0
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ 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]}
check_version = %x[cd #{env_pwd} && git branch --contains '2f23511469505bd114df2c863a477a8730bcdefa']
check_version = %x[cd #{env_pwd} && git rev-list `git rev-parse --abbrev-ref HEAD` | grep 2f23511469505bd114df2c863a477a8730bcdefa]
if check_version.strip != '' #update mongoid version
command4 = ""
puts 'mongoid has been updated!'