Merge pull request #6566 from reitermarkus/realpath

Fix `#system_dir_symlink?` not working when target doesn't exist.
This commit is contained in:
Markus Reiter 2019-10-09 13:57:20 +02:00 committed by GitHub
commit 3f6ee8ba6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ module UnpackStrategy
# symlinks to system directories (commonly to /Applications) # symlinks to system directories (commonly to /Applications)
def system_dir_symlink? def system_dir_symlink?
symlink? && MacOS.system_dir?(realpath) symlink? && MacOS.system_dir?(dirname.join(readlink))
end end
def bom def bom