Skip to content

Commit 3ba7659

Browse files
committed
Fix nvim install
1 parent f8c4b0d commit 3ba7659

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

install.zsh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ function symlink() {
1818
mkdir -p "$dest_dir"
1919
fi
2020

21+
# If dest already resolves to src (e.g., via a symlinked parent dir), skip
22+
if [ -e "$dest" ] && [ "$(realpath "$src")" = "$(realpath "$dest")" ]; then
23+
return 0
24+
fi
25+
2126
if [ -e "$dest" ]; then
2227
if [ -L "$dest" ]; then
2328
if [ ! -e "$dest" ]; then

0 commit comments

Comments
 (0)