summary refs log tree commit diff
path: root/prune.sh
diff options
context:
space:
mode:
authorC. McEnroe <june@causal.agency>2020-12-22 16:41:11 -0500
committerC. McEnroe <june@causal.agency>2020-12-22 16:41:11 -0500
commit3913f22afeb17646427b9cb7117386d7db45a068 (patch)
treedc0979ca54412405b2b15fcae8030368a025c885 /prune.sh
parentMatch the number part of the argument to :RFC (diff)
downloadsrc-3913f22afeb17646427b9cb7117386d7db45a068.tar.gz
src-3913f22afeb17646427b9cb7117386d7db45a068.zip
Limit prune.sh to ~/.config ~/.local
Otherwise macOS gets very mad as it tries to access a bunch of protected
directories.
Diffstat (limited to 'prune.sh')
-rw-r--r--prune.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/prune.sh b/prune.sh
index d41c6bc..fabe865 100644
--- a/prune.sh
+++ b/prune.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -eu
 
-find -L ~ -type l -lname "${PWD}/*" | while read -r link; do
+find -L ~/.config ~/.local -type l -lname "${PWD}/*" | while read -r link; do
 	echo "$link"
 	rm "$link"
 done