From 202a8bd29e297310cc3e18a3f4870cd0e0df9f98 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 19 Sep 2014 11:19:26 +0100 Subject: [PATCH] caveats: check if plist is a symlink. Avoid problems like Homebrew/homebrew#32367. --- Library/Homebrew/caveats.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index fa37c62891..d3e8928ffe 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -88,7 +88,7 @@ class Caveats # we readlink because this path probably doesn't exist since caveats # occurs before the link step of installation - if (not plist_path.file?) and (not plist_path.symlink?) + if !plist_path.file? || !plist_path.symlink? if f.plist_startup s << "To have launchd start #{f.name} at startup:" s << " sudo mkdir -p #{destination}" unless destination_path.directory?