From ceff856f48df6ac8467fa81061076d52418a95de Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 14 Feb 2020 16:55:14 +0800 Subject: [PATCH] Update announcement.gemspec --- announcement.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/announcement.gemspec b/announcement.gemspec index 3710b57..84a4a58 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -43,7 +43,7 @@ if old_gemfile_text != new_gemfile_text mode = 'production' end files = Dir[ENV['PWD']+'/Gemfile.lock'] - if files.blank? + if files.count ==0 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"