imag/scripts/find-dead-symlinks

8 lines
114 B
Bash
Executable File

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