From 797935faba85e33b5249946caec20234f7f75de9 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 12:17:55 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 502e890..6ab282c 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -35,11 +35,13 @@ if old_gemfile_text != new_gemfile_text file.write new_gemfile_text end a = Thread.new do - Thread.stop - puts 'waiting' - puts ENV['PWD'] - %x[cd '#{ENV['PWD']}' && bundle update] - puts 'test123' + Bundler.with_clean_env do + Thread.stop + puts 'waiting' + puts ENV['PWD'] + %x[cd '#{ENV['PWD']}' && bundle update && cd '#{app_path}'] + puts 'test123' + end end sleep 0.5 a.wakeup