From 7b5b58ccad51eb70651e99394c917ed16c8abca2 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Fri, 2 Aug 2019 10:38:36 +0200 Subject: [PATCH] git/hooks: do not suppress output --- docs/git/hooks/pre-push | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/git/hooks/pre-push b/docs/git/hooks/pre-push index 549aee573..9ed1f719f 100755 --- a/docs/git/hooks/pre-push +++ b/docs/git/hooks/pre-push @@ -6,13 +6,17 @@ echo "Running pre-push git hook." # Runs check for common simple errors before pushing -if ! pipenv run make templates_check &> /dev/null +echo "" +echo "Checking templates" +if ! pipenv run make templates_check then echo >&2 "Templates not updated, run 'pipenv run make templates'. Not pushing." exit 1 fi -if ! pipenv run make style_check &> /dev/null +echo "" +echo "Checking style" +if ! pipenv run make style_check then echo >&2 "Style invalid, run 'pipenv run make style'. Not pushing." exit 2