summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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