Improve prune-broken-symlinks

This commit is contained in:
David Tomaschik
2021-05-12 11:46:29 -07:00
parent e05a6aa473
commit 2b6229acc3

View File

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