From 33b483472b1c6eb0c74eb51ed9e76ea579737e72 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 22 Jan 2020 22:38:55 -0500 Subject: [PATCH] install: switch ln flag -T for -n for OpenBSD BSD ln doesn't support the -T option. However, it seems that -n does a simlilar thing, and is better supported cross platform. --- install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 439be3c..1550d77 100755 --- a/install.sh +++ b/install.sh @@ -9,15 +9,14 @@ DOTFILES="$( cd "$(dirname "$0")" ; pwd -P )" try_ln() { if [ -e "$2" ]; then if [ -h "$2" ]; then - ln -sfT $1 $2 + ln -snf $1 $2 echo "[Updated Link] $2" | sed "s#$HOME#~#" else echo "[Fail:Exists ] $2" | sed "s#$HOME#~#" return fi else - # Use 'T' to prevent nesting if the dir already exists - ln -sfT $1 $2 + ln -snf $1 $2 echo "[New ] $2" | sed "s#$HOME#~#" fi } -- libgit2 0.28.4