blob: af2379e5b92aee3b30131092c386b71c404f0cab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
# Remove symbolic links in ~ to files that no longer exist.
set -o errexit -o nounset -o pipefail
paths=$(find -L ~ -type l -lname "$PWD/*")
for path in $paths; do
rm $path
echo $path
done
|