From 3913f22afeb17646427b9cb7117386d7db45a068 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 22 Dec 2020 16:41:11 -0500 Subject: Limit prune.sh to ~/.config ~/.local Otherwise macOS gets very mad as it tries to access a bunch of protected directories. --- prune.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prune.sh') diff --git a/prune.sh b/prune.sh index d41c6bc6..fabe865f 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 -- cgit 1.4.1