From ca71dea284140addcd4ee5883f3784f147196420 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Thu, 5 Jun 2025 13:59:56 -0700 Subject: [PATCH] Make prune-broken-symlinks more portable --- dotfiles/zshrc.d/prune-broken-symlinks.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/zshrc.d/prune-broken-symlinks.zsh b/dotfiles/zshrc.d/prune-broken-symlinks.zsh index 4db9c49..a7f3461 100644 --- a/dotfiles/zshrc.d/prune-broken-symlinks.zsh +++ b/dotfiles/zshrc.d/prune-broken-symlinks.zsh @@ -22,10 +22,10 @@ prune-broken-symlinks() { echo ${FILES} echo -n 'Delete these links? [y/n] ' if read -q ; then - ${FINDCMD} -delete + ${FINDCMD} -print0 | xargs -r -0 rm fi echo else - ${FINDCMD} -print -delete + ${FINDCMD} -print0 | xargs -r -0 rm fi }