From 19a89ee60f5397867681f047c9f596dc40deea75 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 26 Feb 2020 10:22:45 +0800 Subject: [PATCH] avoid site broken when update failed --- announcement.gemspec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 7373b71..bd18027 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -125,11 +125,11 @@ if old_gemfile_text != new_gemfile_text install_cmd = '' use_cmd = '' end - if files.count ==0 - command1 = "gem install bundler -v 1.17.3 ; bundle install --force ; bundle update" - else - command1 = "gem install bundler -v 1.17.3 ; mv -f Gemfile.lock Gemfile.lock.bak123 ; bundle install --force ; bundle update" - end + #if files.count ==0 + # command1 = "gem install bundler -v 1.17.3 ; bundle update --all" + #else + command1 = "gem install bundler -v 1.17.3 ; bundle update --all" + #end filedata = File.read(env_pwd+"/built_in_extensions.rb") exist_str = "gem 'patchfile', git: 'http://gitlab.tp.rulingcom.com/chiu/patch_file.git'" if filedata.include? exist_str