imag/scripts/find-dead-symlinks

7 lines
114 B
Bash
Executable file

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