cmd/services: don't complain about outdated Homebrew if running as root.
Fixes #641.
This commit is contained in:
parent
cd15471840
commit
4366aceaf4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue