Merge pull request #5864 from morgo/brew-services
caveats: non-macOS platforms warn on services
This commit is contained in:
commit
af0bbc793e
@ -136,7 +136,16 @@ class Caveats
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
def plist_caveats; end
|
def plist_caveats
|
||||||
|
return unless f.plist_manual
|
||||||
|
|
||||||
|
# Default to brew services not being supported. macOS overrides this behavior.
|
||||||
|
<<~EOS
|
||||||
|
#{Formatter.warning("Warning:")} #{f.name} provides a launchd plist which can only be used on macOS!
|
||||||
|
You can manually execute the service instead with:
|
||||||
|
#{f.plist_manual}
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
|
||||||
def plist_path
|
def plist_path
|
||||||
destination = if f.plist_startup
|
destination = if f.plist_startup
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user