bundle/brew_services: use HOMEBREW_BREW_FILE.

This ensures the correct `brew` binary is always used.
This commit is contained in:
Mike McQuaid 2025-03-19 10:24:42 +00:00
parent c7f6fc639b
commit a502ae2920
No known key found for this signature in database

View File

@ -40,7 +40,7 @@ module Homebrew
def started_services
@started_services ||= begin
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+/)
next if states_to_skip.include? state