diff options
| author | Mike McQuaid | 2014-09-19 11:19:26 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-09-19 11:20:16 +0100 |
| commit | 202a8bd29e297310cc3e18a3f4870cd0e0df9f98 (patch) | |
| tree | a32e090cc3084db06002b7fbbb9f104a5c61a5d5 /Library | |
| parent | fef8b0871de845dd7e9f5f6a40dbcda7620a4960 (diff) | |
| download | brew-202a8bd29e297310cc3e18a3f4870cd0e0df9f98.tar.bz2 | |
caveats: check if plist is a symlink.
Avoid problems like Homebrew/homebrew#32367.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/caveats.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index fa37c6289..d3e8928ff 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? |
