mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
fix pre-commit install when subdirectories don't have a config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user