From 8fdeac55bd0aabf9ba01e68fd8e04d1796248a07 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 26 Feb 2020 09:22:55 +0800 Subject: [PATCH] fix error --- announcement.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 9978d06..7373b71 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -119,7 +119,7 @@ if old_gemfile_text != new_gemfile_text Bundler.with_clean_env{%x[screen -ls | grep auto_reopen_#{dir_name} | cut -d. -f1 | awk '{print $1}' | xargs kill]} end if %x[ruby -v].scan(/\d\.\d\.\d/)[0] == '2.1.3' - install_cmd = 'rvm install 2.1.10 && rvm use default 2.1.10' + install_cmd = 'rvm install 2.1.10 && rvm use default 2.1.10;' use_cmd = 'source ~/.rvm/scripts/rvm && rvm use 2.1.10 --default;' else install_cmd = '' @@ -140,7 +140,7 @@ if old_gemfile_text != new_gemfile_text f.puts exist_str } end - all_command = "#{install_cmd} ; #{command1} ; #{command2} #{command3} #{command4} " + all_command = "#{install_cmd} #{command1} ; #{command2} #{command3} #{command4} " watch_dog_cmd = "watch -n 30 \"unset UNICORN_FD && bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now\"" #file = File.new(File.join(env_pwd,'bundle_update_background.sh'),"w") #file.write(all_command)