From c5d80271f44b1358479b3a8d16986dc93df3f40e Mon Sep 17 00:00:00 2001 From: thibhero Date: Sun, 2 Mar 2025 20:03:39 -0500 Subject: [PATCH] dont ask input if gets doesnt exist because of test --- Library/Homebrew/install.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index ab443e0e7c..558d722737 100644 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -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