make check-sylinks do something useful
This commit is contained in:
parent
436c4b8217
commit
3fabbf57a9
@ -18,5 +18,5 @@ echo "Check for dangling symlinks in ${1} ..."
|
|||||||
if [ "$(find "${1}" -xtype l | wc -l)" -ne 0 ] ; then
|
if [ "$(find "${1}" -xtype l | wc -l)" -ne 0 ] ; then
|
||||||
echo "Error: Dangling symlinks found" >&2
|
echo "Error: Dangling symlinks found" >&2
|
||||||
find "${1}" -xtype l
|
find "${1}" -xtype l
|
||||||
exit 1
|
find . -xtype l -exec rm {} \; && exit 0 || exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user