summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2017-02-01 16:22:30 +0100
committerTharre <tharre3@gmail.com>2017-02-01 16:37:09 +0100
commit9d0c29b48645460fc49d9be63736faac239f6b9c (patch)
tree3e03987f020b8a283393c0bdfdbf709cbb5d8501 /install.sh
parent299c73997f57d12b8380119f5a0be0ba4fa57216 (diff)
downloaddotfiles-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-xinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 4d1eb5b..d4d168a 100755
--- a/install.sh
+++ b/install.sh
@@ -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