Skip to content

Commit

Permalink
Merge pull request #642 from Homebrew/root_outdated
Browse files Browse the repository at this point in the history
cmd/services: don't complain about outdated Homebrew if running as root.
  • Loading branch information
MikeMcQuaid authored Apr 2, 2024
2 parents cd15471 + 4366ace commit 3a34cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/services.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 3a34cee

Please sign in to comment.