From a958213ec75bf7f4020ea786e903156a678abd43 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 13 Mar 2022 20:00:23 -0700 Subject: [PATCH] fix pre-commit install when subdirectories don't have a config --- update_requirements.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update_requirements.sh b/update_requirements.sh index 4925e48bb..94b14496f 100755 --- a/update_requirements.sh +++ b/update_requirements.sh @@ -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