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"