From da69b6401c106949db6d5f6beb9f0288a38ca0e0 Mon Sep 17 00:00:00 2001 From: Justin Kopepasah Date: Mon, 9 Dec 2019 12:11:59 -0600 Subject: [PATCH] Overwrite pre-commit file when running script. --- scripts/install-pre-commit-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-pre-commit-hook.sh b/scripts/install-pre-commit-hook.sh index d517cb3..f12057d 100755 --- a/scripts/install-pre-commit-hook.sh +++ b/scripts/install-pre-commit-hook.sh @@ -40,7 +40,7 @@ if [ -z "$RELPATH" ]; then fi echo "## Placing pre-commit file in $(pwd) from $RELPATH" -ln -s "$RELPATH" . +ln -sf "$RELPATH" . # Return back to the calling directory cd "$OLDPWD" &> /dev/null