dont ask input if gets doesnt exist because of test
This commit is contained in:
parent
7b3e469650
commit
c5d80271f4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user