diff --git a/announcement.gemspec b/announcement.gemspec index a71b434..f7c641d 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -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