2 # Desc: Delete symlinks; skips non-symlinks
6 yell
() { echo "$0: $*" >&2; } # print script path and all args to stderr
7 die
() { yell
"$*"; exit 111; } # same as yell() but non-zero exit status
8 must
() { "$@" || die
"cannot $*"; } # runs args as command, reports args if command fails
12 if [[ -h "$psarg" ]]; then
15 yell
"Not a symbolic link; not deleting:$psarg";
23 # Author: Steven Baltakatei Sandoval