diff --git a/announcement.gemspec b/announcement.gemspec index 35fd590..522d864 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -44,9 +44,9 @@ if old_gemfile_text != new_gemfile_text end files = Dir[ENV['PWD']+'/Gemfile.lock'] if files.count ==0 - command1 = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} && bundle update" + command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && bundle update" else - command1 = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} && mv -f Gemfile.lock Gemfile.lock.bak123 && bundle update" + command1 = "cd #{ENV['PWD']} && gem install bundler -v 1.17.3 && mv -f Gemfile.lock Gemfile.lock.bak123 && bundle update" end pid_file = Dir[ENV['PWD']+'/tmp/pids/unicorn.pid'] if pid_file.count == 0