force symlinks instead of removing files

This commit is contained in:
Noah Masur 2020-11-29 10:56:35 -05:00
parent c408e814e0
commit a8bbca7189

View File

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