Use only posix find in prune-broken-symlinks

This commit is contained in:
David Tomaschik
2020-10-03 15:18:57 -07:00
parent 5ad1ad4616
commit 465bfd37f1

View File

@@ -12,7 +12,7 @@ prune-broken-symlinks() {
ASK=1 ASK=1
fi fi
DIR=${1:-.} DIR=${1:-.}
FINDCMD=(find ${DIR} -type l -xtype l) FINDCMD=(find -L ${DIR} -type l)
if (($ASK)) ; then if (($ASK)) ; then
local FILES local FILES
FILES=`${FINDCMD} -print` FILES=`${FINDCMD} -print`