From d8b1f3b90410111379c6c96a016c79b200fb2164 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 16:54:35 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/announcement.gemspec b/announcement.gemspec index 1dfafae..3710b57 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -42,7 +42,8 @@ if old_gemfile_text != new_gemfile_text else mode = 'production' end - if Dir[ENV['PWD']+'/Gemfile.lock'].blank? + files = Dir[ENV['PWD']+'/Gemfile.lock'] + if files.blank? command = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} \r\n bundle update \r\n" else command = "gem install bundler -v 1.17.3 && cd #{ENV['PWD']} \r\n mv -f Gemfile.lock Gemfile.lock.bak123 \r\n bundle update \r\n"