1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

git/hooks: do not suppress output

This commit is contained in:
Tomas Susanka 2019-08-02 10:38:36 +02:00
parent e30159c000
commit 7b5b58ccad

View File

@ -6,13 +6,17 @@
echo "Running pre-push git hook." echo "Running pre-push git hook."
# Runs check for common simple errors before pushing # 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 then
echo >&2 "Templates not updated, run 'pipenv run make templates'. Not pushing." echo >&2 "Templates not updated, run 'pipenv run make templates'. Not pushing."
exit 1 exit 1
fi fi
if ! pipenv run make style_check &> /dev/null echo ""
echo "Checking style"
if ! pipenv run make style_check
then then
echo >&2 "Style invalid, run 'pipenv run make style'. Not pushing." echo >&2 "Style invalid, run 'pipenv run make style'. Not pushing."
exit 2 exit 2