Merge pull request #6568 from simono/fix-diagnostic-keepfile
Fix diagnostic when only keep_file is in sbin.
This commit is contained in:
commit
1f924db7f3
@ -424,7 +424,9 @@ module Homebrew
|
|||||||
|
|
||||||
# Don't complain about sbin not being in the path if it doesn't exist
|
# Don't complain about sbin not being in the path if it doesn't exist
|
||||||
sbin = HOMEBREW_PREFIX/"sbin"
|
sbin = HOMEBREW_PREFIX/"sbin"
|
||||||
return unless sbin.directory? && !sbin.children.empty?
|
return unless sbin.directory?
|
||||||
|
return if sbin.children.empty?
|
||||||
|
return if sbin.children.one? && sbin.children.first.basename.to_s == ".keepme"
|
||||||
|
|
||||||
<<~EOS
|
<<~EOS
|
||||||
Homebrew's sbin was not found in your PATH but you have installed
|
Homebrew's sbin was not found in your PATH but you have installed
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user