make check-sylinks do something useful

This commit is contained in:
Ward Nakchbandi 2023-03-04 12:58:02 +03:00
parent 436c4b8217
commit 3fabbf57a9

View File

@ -18,5 +18,5 @@ echo "Check for dangling symlinks in ${1} ..."
if [ "$(find "${1}" -xtype l | wc -l)" -ne 0 ] ; then
echo "Error: Dangling symlinks found" >&2
find "${1}" -xtype l
exit 1
find . -xtype l -exec rm {} \; && exit 0 || exit 1
fi