dont ask input if gets doesnt exist because of test

This commit is contained in:
thibhero 2025-03-02 20:03:39 -05:00
parent 7b3e469650
commit c5d80271f4

View File

@ -329,6 +329,7 @@ module Homebrew
def ask_input
ohai "Do you want to proceed with the installation? [Y/y/yes/N/n]"
return unless $stdin.gets != nil
accepted_inputs = %w[y yes]
declined_inputs = %w[n no]
loop do