From 6a536301c6290dabbd1adffda80f068f04108c23 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 1 Nov 2016 17:25:19 +0100 Subject: scripts/install-git-hooks.sh: Catch errors Signed-off-by: Florian Pritz --- scripts/install-git-hooks.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install-git-hooks.sh b/scripts/install-git-hooks.sh index 05a7c9017..4ae22fa79 100755 --- a/scripts/install-git-hooks.sh +++ b/scripts/install-git-hooks.sh @@ -1,4 +1,7 @@ #!/bin/bash + +set -e + SCRIPTS_DIR=$(realpath $(dirname "$0")) HOOK_DIR=$(realpath "$SCRIPTS_DIR/../.git/hooks") HOOK_NAMES="applypatch-msg pre-applypatch post-applypatch pre-commit prepare-commit-msg commit-msg post-commit pre-rebase post-checkout post-merge pre-receive update post-receive post-update pre-auto-gc" -- cgit v1.2.3-24-g4f1b