mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 04:25:36 +00:00
don't follow symlinks when updating them
This commit is contained in:
parent
a8bbca7189
commit
24ebddafb6
@ -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 ✓"
|
||||||
|
Loading…
Reference in New Issue
Block a user