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.