don't follow symlinks when updating them

This commit is contained in:
Noah Masur 2020-11-29 11:19:37 -05:00
parent a8bbca7189
commit 24ebddafb6

View File

@ -8,7 +8,7 @@ setup_symlinks() {
for source in $(find "$DOTS" -iname "*.symlink") for source in $(find "$DOTS" -iname "*.symlink")
do do
dest="$HOME/.`basename \"${source%.*}\"`" dest="$HOME/.`basename \"${source%.*}\"`"
ln -sf "$source" "$dest" ln -sfn "$source" "$dest"
done done
echo "symlinks ✓" echo "symlinks ✓"
@ -18,7 +18,7 @@ setup_configlinks() {
for source in $(find "$DOTS" -iname "*.configlink") for source in $(find "$DOTS" -iname "*.configlink")
do do
dest="$HOME/.config/`basename \"${source%.*}\"`" dest="$HOME/.config/`basename \"${source%.*}\"`"
ln -sf "$source" "$dest" ln -sfn "$source" "$dest"
done done
echo "configlinks ✓" echo "configlinks ✓"