diff options
| author | Mike McQuaid | 2014-09-19 11:19:26 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-09-19 11:20:16 +0100 |
| commit | 2349864926f9baad04a8614d81741bf36eba2c01 (patch) | |
| tree | bcea8f8449adb25948e375eae8bbf2b607794cb9 /Library | |
| parent | 590069d269de0d6b424e8107a0c6ce87f75f4171 (diff) | |
| download | homebrew-2349864926f9baad04a8614d81741bf36eba2c01.tar.bz2 | |
caveats: check if plist is a symlink.
Avoid problems like #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? |
