mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
root auto-taps should be done as Homebrew user
Closes https://github.com/Homebrew/brew/issues/14263.
This commit is contained in:
parent
884c4bec14
commit
a76451602d
@ -125,6 +125,7 @@ begin
|
||||
with_env HOMEBREW_HELP: nil do
|
||||
tap_commands = []
|
||||
if File.exist?("/.dockerenv") ||
|
||||
Process.uid.zero? ||
|
||||
((cgroup = Utils.popen_read("cat", "/proc/1/cgroup").presence) &&
|
||||
%w[azpl_job actions_job docker garden kubepods].none? { |type| cgroup.include?(type) })
|
||||
brew_uid = HOMEBREW_BREW_FILE.stat.uid
|
||||
|
Loading…
x
Reference in New Issue
Block a user