Merge pull request #19544 from Homebrew/bundle_services_brew

bundle/brew_services: use HOMEBREW_BREW_FILE.
This commit is contained in:
Carlo Cabrera 2025-03-19 18:28:38 +08:00 committed by GitHub
commit 261e8fc9f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ module Homebrew
def started_services def started_services
@started_services ||= begin @started_services ||= begin
states_to_skip = %w[stopped none] states_to_skip = %w[stopped none]
Utils.safe_popen_read("brew", "services", "list").lines.filter_map do |line| Utils.safe_popen_read(HOMEBREW_BREW_FILE, "services", "list").lines.filter_map do |line|
name, state, _plist = line.split(/\s+/) name, state, _plist = line.split(/\s+/)
next if states_to_skip.include? state next if states_to_skip.include? state