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?