From: Ismaƫl Bouya Date: Sat, 10 Nov 2018 07:10:39 +0000 (+0100) Subject: Fix prepush script X-Git-Tag: v1.0~32 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=6a2114b71df8dfb58cef50daab747c987498956d;p=perso%2FImmae%2FConfig%2FAnsible.git Fix prepush script --- diff --git a/roles/git/files/config_files/git/templates_fretlink/hooks/pre-push b/roles/git/files/config_files/git/templates_fretlink/hooks/pre-push index 19088c9..1197641 100755 --- a/roles/git/files/config_files/git/templates_fretlink/hooks/pre-push +++ b/roles/git/files/config_files/git/templates_fretlink/hooks/pre-push @@ -1,8 +1,11 @@ #!/usr/bin/env bash -set -e - echo "[+] Running the linter" make lint +output=$? -exit 0 +if [ "$output" = 1 ]; then + exit 1 +else + exit 0 +fi