Function to prune broken symlinks.

This commit is contained in:
David Tomaschik
2015-09-11 18:22:57 -07:00
parent a06239095c
commit f6d9a2ac2d

View File

@@ -0,0 +1,4 @@
prune-broken-symlinks() {
setopt localoptions nounset
find $1 -type l -xtype l -print -delete
}