pvc/.hooks/pre-commit
Joshua M. Boniface b9c30baf80 Unify formatting and linting
Ensures optimal formatting in addition to linting during manual deploys
and during pre-commit actions.
2021-11-06 03:10:17 -04:00

16 lines
223 B
Bash
Executable File

#!/usr/bin/env bash
pushd $( git rev-parse --show-toplevel ) &>/dev/null
ex=0
./prepare
if [[ $? -ne 0 ]]; then
echo "Aborting commit due to formatting or linting errors."
ex=1
fi
echo
popd &>/dev/null
exit $ex