summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-10 08:10:39 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-10 08:10:39 +0100
commit6a2114b71df8dfb58cef50daab747c987498956d (patch)
treeb8808e2035fbed934f0c5665142333655d2f3922
parente7c9bf715db5255074b6f7554a60de263cc3aa96 (diff)
downloadAnsible-6a2114b71df8dfb58cef50daab747c987498956d.tar.gz
Ansible-6a2114b71df8dfb58cef50daab747c987498956d.tar.zst
Ansible-6a2114b71df8dfb58cef50daab747c987498956d.zip
Fix prepush script
-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