Make prune-broken-symlinks more portable

This commit is contained in:
David Tomaschik
2025-06-05 13:59:56 -07:00
parent 00bbe65691
commit ca71dea284

View File

@@ -22,10 +22,10 @@ prune-broken-symlinks() {
echo ${FILES} echo ${FILES}
echo -n 'Delete these links? [y/n] ' echo -n 'Delete these links? [y/n] '
if read -q ; then if read -q ; then
${FINDCMD} -delete ${FINDCMD} -print0 | xargs -r -0 rm
fi fi
echo echo
else else
${FINDCMD} -print -delete ${FINDCMD} -print0 | xargs -r -0 rm
fi fi
} }