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 }