From 359fa5513a765a100c993a8f8f11d7d3a850ff98 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 25 Feb 2020 22:06:24 +0800 Subject: [PATCH] try --- announcement.gemspec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 325eefd..9aca9f5 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -72,7 +72,7 @@ all_template.each do |folder| end end rescue => e - puts "not found #{folder}assets/stylesheets/template/base/_variables.scss" + puts "#{e.inspect}\nnot found #{folder}assets/stylesheets/template/base/_variables.scss" end end end @@ -115,9 +115,11 @@ if old_gemfile_text != new_gemfile_text if watch_dog.scan("auto_reopen_#{dir_name}").count != 0 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' + 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' - #end + else + install_cmd = '' + end if files.count ==0 command1 = "gem install bundler -v 1.17.3 ; bundle install --force ; bundle update" else