diff --git a/bin/s3_website b/bin/s3_website index 727d7dde..2bff0f31 100755 --- a/bin/s3_website +++ b/bin/s3_website @@ -194,7 +194,7 @@ def autoinstall_java_or_print_help_and_exit(logger) if automatic_method @logger.info_msg "Do you want me to install Java with the command `#{automatic_method.fetch(:install_command)}`? [Y/n]" user_answer = $stdin.gets - if user_answer.chomp.downcase == 'y' or user_answer == "\n" + if user_answer.chomp.downcase == 'y' or user_answer == "\n" or user_answer.nil? automatic_method_succeeded = system automatic_method.fetch(:install_command) unless automatic_method_succeeded @logger.fail_msg "Could not automatically install Java. Try setting it up manually:" diff --git a/s3_website.gemspec b/s3_website.gemspec index 0e878133..8225b6d5 100644 --- a/s3_website.gemspec +++ b/s3_website.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.add_dependency 'colored', '1.2' s.add_dependency 'dotenv', '~> 1.0' - s.add_development_dependency 'rake', '10.1.1' + s.add_development_dependency 'rake', '12.3.3' s.add_development_dependency 'octokit', '3.1.0' s.add_development_dependency 'mime-types'