aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/install.sh
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-03-27 17:14:38 -0500
committerToby Vincent <tobyv13@gmail.com>2023-03-27 17:14:38 -0500
commitdf0c3c82b21d37cc13b6ad24ff7e8a33c9f1f5e2 (patch)
treed9a2020bbf556ab95d0fcabb8e02ed56e2f4a5c9 /install.sh
parent5bdc6845e5a915cb937c685df7980f4047c5d2f8 (diff)
fix: handle cleaning broken symlinks in `$HOME`
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 5037fce..42f2e07 100755
--- a/install.sh
+++ b/install.sh
@@ -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