cmd/services: don't complain about outdated Homebrew if running as root.

Fixes #641.
This commit is contained in:
Mike McQuaid 2024-04-02 20:47:46 +01:00
parent cd15471840
commit 4366aceaf4
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
if Version.new(HOMEBREW_VERSION) < Version.new("4.2.15")
if !Process.euid.zero? && Version.new(HOMEBREW_VERSION) < Version.new("4.2.15")
odie "Your Homebrew is too outdated for `brew services`. Please run `brew update`!"
end