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"