Revert "cleanup: check if symlinks are readable."

This commit is contained in:
Mike McQuaid 2022-01-25 12:10:50 +00:00 committed by GitHub
parent e004ba7f12
commit 5ebf3acc94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -489,7 +489,7 @@ module Homebrew
dir.find do |path|
path.extend(ObserverPathnameExtension)
if path.symlink?
if path.readable_real? && !path.resolved_path_exists?
unless path.resolved_path_exists?
path.uninstall_info if path.to_s.match?(Keg::INFOFILE_RX) && !dry_run?
if dry_run?