fix pre-commit install when subdirectories don't have a config

This commit is contained in:
Adeeb Shihadeh
2022-03-13 20:00:23 -07:00
parent d6f6e024b3
commit a958213ec7
+1
View File
@@ -45,6 +45,7 @@ pipenv install --dev --deploy --clear
pyenv rehash
echo "pre-commit hooks install..."
shopt -s nullglob
for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do
cd $DIR/$(dirname $f)
if [ -e ".git" ]; then