Merge pull request #19448 from gromgit/diagnostic/user_path_prereq
diagnostic: enforce user_path_1 prerequisite
This commit is contained in:
commit
2f6db3757e
@ -426,10 +426,12 @@ module Homebrew
|
||||
end
|
||||
end
|
||||
|
||||
@user_path_1_done = true
|
||||
message unless message.empty?
|
||||
end
|
||||
|
||||
def check_user_path_2
|
||||
check_user_path_1 unless defined?(@user_path_1_done)
|
||||
return if @seen_prefix_bin
|
||||
|
||||
<<~EOS
|
||||
@ -440,6 +442,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
def check_user_path_3
|
||||
check_user_path_1 unless defined?(@user_path_1_done)
|
||||
return if @seen_prefix_sbin
|
||||
|
||||
# Don't complain about sbin not being in the path if it doesn't exist
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user