caveats: check if plist is a symlink.

Avoid problems like Homebrew/homebrew#32367.
This commit is contained in:
Mike McQuaid 2014-09-19 11:19:26 +01:00
parent fef8b0871d
commit 202a8bd29e

View File

@ -88,7 +88,7 @@ class Caveats
# we readlink because this path probably doesn't exist since caveats # we readlink because this path probably doesn't exist since caveats
# occurs before the link step of installation # 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 if f.plist_startup
s << "To have launchd start #{f.name} at startup:" s << "To have launchd start #{f.name} at startup:"
s << " sudo mkdir -p #{destination}" unless destination_path.directory? s << " sudo mkdir -p #{destination}" unless destination_path.directory?