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