From 9d0c29b48645460fc49d9be63736faac239f6b9c Mon Sep 17 00:00:00 2001 From: Tharre Date: Wed, 1 Feb 2017 16:22:30 +0100 Subject: 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. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2