Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Make sure pre-commit hook gets upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
forslund committed May 15, 2019
1 parent 88114dc commit 6626884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ source "${VIRTUALENV_ROOT}/bin/activate"
cd "${TOP}"

# Install pep8 pre-commit hook
if [ -z ${INSTALL_PRECOMMIT_HOOK} ] ; then
HOOK_FILE="./.git/hooks/pre-commit"
HOOK_FILE="./.git/hooks/pre-commit"
if [ ! -z ${INSTALL_PRECOMMIT_HOOK+x} ] || grep -q "MYCROFT DEV SETUP" ${HOOK_FILE}; then
if [ ! -f ${HOOK_FILE} ] || grep -q "MYCROFT DEV SETUP" ${HOOK_FILE} ; then
echo "Installing PEP8 check as precommit-hook"
echo "#! $( which python )" > ${HOOK_FILE}
Expand Down

0 comments on commit 6626884

Please sign in to comment.