mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
diagnostic: fix XDG_DATA_DIRS check
Pass `XDG_DATA_DIRS` through `bin/brew` so that it can be checked.
This commit is contained in:
parent
78132b13bf
commit
3eaebdc9d8
@ -60,8 +60,8 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_xdg_data_dirs
|
def check_xdg_data_dirs
|
||||||
xdg_data_dirs = ENV.fetch("XDG_DATA_DIRS", nil)
|
xdg_data_dirs = ENV.fetch("HOMEBREW_XDG_DATA_DIRS", nil)
|
||||||
return if xdg_data_dirs.blank? || xdg_data_dirs.split("/").include?(HOMEBREW_PREFIX/"share")
|
return if xdg_data_dirs.blank? || xdg_data_dirs.split(":").include?(HOMEBREW_PREFIX/"share")
|
||||||
|
|
||||||
<<~EOS
|
<<~EOS
|
||||||
Homebrew's share was not found in your XDG_DATA_DIRS but you have
|
Homebrew's share was not found in your XDG_DATA_DIRS but you have
|
||||||
|
Loading…
x
Reference in New Issue
Block a user