From 6a2114b71df8dfb58cef50daab747c987498956d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 10 Nov 2018 08:10:39 +0100 Subject: [PATCH] Fix prepush script --- .../config_files/git/templates_fretlink/hooks/pre-push | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.41.0