From 12b4eeb14143bae43b19d77fdf02866151b4446c Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 15:58:24 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 829d24c..64891fe 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -35,11 +35,11 @@ if old_gemfile_text != new_gemfile_text File.open(ENV['PWD']+'/Gemfile', 'w') do |file| file.write new_gemfile_text end + mode = Rails.env.inspect a = Thread.start do Bundler.with_clean_env do puts ENV['PWD'] - puts ['mode',Rails.env.inspect] - exec ("gem install bundler -v 1.17.3 \r\n cd #{ENV['PWD']} \r\n mv -f Gemfile.lock Gemfile.lock.bak123 \r\n bundle update") + %x [gem install bundler -v 1.17.3 \r\n cd '#{ENV['PWD']}' \r\n mv -f Gemfile.lock Gemfile.lock.bak123 \r\n bundle update] end end a.priority = 2