mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 23:46:56 +00:00
Merge pull request #5864 from morgo/brew-services
caveats: non-macOS platforms warn on services
This commit is contained in:
@@ -136,7 +136,16 @@ class Caveats
|
||||
EOS
|
||||
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
|
||||
destination = if f.plist_startup
|
||||
|
||||
Reference in New Issue
Block a user