diff options
author | Tharre <tharre3@gmail.com> | 2017-02-01 16:22:30 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2017-02-01 16:37:09 +0100 |
commit | 9d0c29b48645460fc49d9be63736faac239f6b9c (patch) | |
tree | 3e03987f020b8a283393c0bdfdbf709cbb5d8501 /install.sh | |
parent | 299c73997f57d12b8380119f5a0be0ba4fa57216 (diff) | |
download | dotfiles-9d0c29b48645460fc49d9be63736faac239f6b9c.tar.gz dotfiles-9d0c29b48645460fc49d9be63736faac239f6b9c.tar.xz dotfiles-9d0c29b48645460fc49d9be63736faac239f6b9c.zip |
Add -n option to install.sh to replace symlinks
Previously -T was used to avoid putting symlinks into the target
directory, instead of replacing it. This is however not a commonly
supported option of ln, so it was removed.
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ else if [ ! -e "$target" ] || [ -L "$target" ]; then # target either doesn't exist or is a symbolic link and can thus be # safely replaced - ln -sf "$origin" "$target" + ln -sfn "$origin" "$target" elif [ -d "$target" ]; then # target is not a symbolic link, but a directory, thus we link # everything into that directory instead |