summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xroles/git/files/config_files/git/templates_fretlink/hooks/pre-push9
1 files 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 @@
1#!/usr/bin/env bash 1#!/usr/bin/env bash
2 2
3set -e
4
5echo "[+] Running the linter" 3echo "[+] Running the linter"
6make lint 4make lint
5output=$?
7 6
8exit 0 7if [ "$output" = 1 ]; then
8 exit 1
9else
10 exit 0
11fi