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