Add error handling to git-* scripts

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-07-17 11:55:39 +02:00
parent f9e838ea19
commit 542937d93f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
4 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
set -o pipefail
set -e
HOOKTYPE=$1 HOOKTYPE=$1
if ! [ -e Makefile ]; then if ! [ -e Makefile ]; then

View file

@ -1,5 +1,8 @@
#!/bin/bash -e #!/bin/bash -e
set -o pipefail
set -e
STEP_COLOR="\033[0;36m" STEP_COLOR="\033[0;36m"
NO_COLOR="\033[0m" NO_COLOR="\033[0m"

View file

@ -1,5 +1,8 @@
#!/bin/bash -e #!/bin/bash -e
set -o pipefail
set -e
STEP_COLOR="\033[0;36m" STEP_COLOR="\033[0;36m"
NO_COLOR="\033[0m" NO_COLOR="\033[0m"

View file

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
set -o pipefail
set -e
STEP_COLOR="\033[0;36m" STEP_COLOR="\033[0;36m"
NO_COLOR="\033[0m" NO_COLOR="\033[0m"