From 24ebddafb66cf67a274b6e15d7fe211c6dd816fb Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Sun, 29 Nov 2020 11:19:37 -0500 Subject: [PATCH] don't follow symlinks when updating them --- scripts/setup_symlinks | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup_symlinks b/scripts/setup_symlinks index bd93a7e..7c6042d 100755 --- a/scripts/setup_symlinks +++ b/scripts/setup_symlinks @@ -8,7 +8,7 @@ setup_symlinks() { for source in $(find "$DOTS" -iname "*.symlink") do dest="$HOME/.`basename \"${source%.*}\"`" - ln -sf "$source" "$dest" + ln -sfn "$source" "$dest" done echo "symlinks ✓" @@ -18,7 +18,7 @@ setup_configlinks() { for source in $(find "$DOTS" -iname "*.configlink") do dest="$HOME/.config/`basename \"${source%.*}\"`" - ln -sf "$source" "$dest" + ln -sfn "$source" "$dest" done echo "configlinks ✓"