aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/caveats.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/caveats.rb')
-rw-r--r--Library/Homebrew/caveats.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb
index 59e15ebbc..3eab3722b 100644
--- a/Library/Homebrew/caveats.rb
+++ b/Library/Homebrew/caveats.rb
@@ -149,8 +149,11 @@ class Caveats
def plist_caveats
s = []
if f.plist || (keg && keg.plist_installed?)
- destination = f.plist_startup ? "/Library/LaunchDaemons" \
- : "~/Library/LaunchAgents"
+ destination = if f.plist_startup
+ "/Library/LaunchDaemons"
+ else
+ "~/Library/LaunchAgents"
+ end
plist_filename = if f.plist
f.plist_path.basename