blob: 2480b7baab8fbe50b4f55056fa64a3198e93558d (
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 -e
paths=$(find -L ~ -type l -lname "$PWD/*")
for path in $paths; do
rm $path
echo $path
done
|