summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.mrconfig.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/.mrconfig.in b/.mrconfig.in
index b0a77342..9e098350 100644
--- a/.mrconfig.in
+++ b/.mrconfig.in
@@ -132,6 +132,12 @@ lib =
chmod 700 local/auth
# [ -L "src/build-area" ] || ln -s -T /tmp/debuild src/build-area
[ -e "Downloads" ] || ln -s tmp Downloads
+ # clean up after additions to .stow-local-ignore
+ find bin lib/aid -type l 2>/dev/null | while read -r link; do
+ if readlink "$link" | grep --quiet "^[../]*/.STOW/"; then
+ rm "$link"
+ fi
+ done
# cleanup some old dirs if they're empty
find \
bin \