diff options
| author | Mike McQuaid | 2014-11-27 10:48:24 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-11-27 10:48:24 +0000 |
| commit | 3e391af3d4daa739b02381d2d4ea6028cc6c793b (patch) | |
| tree | 781b20ac2e9e24460be447b072a7f3b4ec87c44e /Library | |
| parent | e299e016dc29307921212e3ff3a0b9b45a96ac1e (diff) | |
| download | homebrew-3e391af3d4daa739b02381d2d4ea6028cc6c793b.tar.bz2 | |
caveats: handle non-Homebrew plists.
Mentioned in #34484.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/caveats.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index 17fdb7801..f47eed5db 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -108,7 +108,11 @@ class Caveats destination = f.plist_startup ? '/Library/LaunchDaemons' \ : '~/Library/LaunchAgents' - plist_filename = f.plist_path.basename + plist_filename = if f.plist + f.plist_path.basename + else + File.basename Dir["#{keg.to_path}/*.plist"].first + end plist_link = "#{destination}/#{plist_filename}" plist_domain = f.plist_path.basename('.plist') destination_path = Pathname.new File.expand_path destination |
