Skip to content
Snippets Groups Projects
Commit 202a8bd2 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

caveats: check if plist is a symlink.

Avoid problems like Homebrew/homebrew#32367.
parent fef8b087
No related branches found
No related tags found
No related merge requests found
......@@ -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?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment