imag/scripts/find-dead-symlinks

8 lines
114 B
Text
Raw Normal View History

#!/usr/bin/env bash
[[ 0 == "$(find . -xtype l | wc -l)" ]] || {
echo >2 "DEAD SYMLINKS FOUND"
exit 1
}