diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-03-27 17:14:38 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-03-27 17:14:38 -0500 |
commit | df0c3c82b21d37cc13b6ad24ff7e8a33c9f1f5e2 (patch) | |
tree | d9a2020bbf556ab95d0fcabb8e02ed56e2f4a5c9 | |
parent | 5bdc6845e5a915cb937c685df7980f4047c5d2f8 (diff) |
fix: handle cleaning broken symlinks in `$HOME`
-rwxr-xr-x | install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -123,7 +123,7 @@ if $clean; then # shellcheck disable=2086 fd . "$HOME" --hidden --type l --exclude \.dotfiles/** --exec sh $simulate $fd_verbose -c \ - "[ -e '{}' ] || case \$(readlink '{}') in *'../.dotfiles/'*) rm -v '{}';; esac" + "[ -e '{}' ] || case \$(readlink -m '{}') in \"$SCRIPT_DIR/\"*) rm -v '{}';; esac" if $clean_only; then exit 0 |