From cae1ca33ec9a7c68b2e1c4b951dab9a80b369fab Mon Sep 17 00:00:00 2001 From: Eric Knibbe Date: Tue, 11 Mar 2025 09:48:39 -0400 Subject: [PATCH] rmdir: ignore unreadable path errors --- Library/Homebrew/cask/utils/rmdir.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/utils/rmdir.sh b/Library/Homebrew/cask/utils/rmdir.sh index 30fc3b150d..046e2d096f 100755 --- a/Library/Homebrew/cask/utils/rmdir.sh +++ b/Library/Homebrew/cask/utils/rmdir.sh @@ -26,7 +26,7 @@ do # Some packages leave broken symlinks around; we clean them out before # attempting to `rmdir` to prevent extra cruft from accumulating. - /usr/bin/find -f "${path}" -- -mindepth 1 -maxdepth 1 -type l ! -exec /bin/test -e {} \; -delete + /usr/bin/find -f "${path}" -- -mindepth 1 -maxdepth 1 -type l ! -exec /bin/test -e {} \; -delete || true elif ! ${symlink} && [[ ! -e "${path}" ]] then # Skip paths that don't exists and aren't a broken symlink.