update_requirements: skip pre-commit install on mac

pull/26846/head
Adeeb Shihadeh 2 years ago
parent e018098571
commit 28d0459c69
  1. 18
      update_requirements.sh

@ -69,11 +69,13 @@ else
RUN="poetry run" RUN="poetry run"
fi fi
echo "pre-commit hooks install..." if [ "$(uname)" != "Darwin" ]; then
shopt -s nullglob echo "pre-commit hooks install..."
for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do shopt -s nullglob
cd $DIR/$(dirname $f) for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do
if [ -e ".git" ]; then cd $DIR/$(dirname $f)
$RUN pre-commit install if [ -e ".git" ]; then
fi $RUN pre-commit install
done fi
done
fi

Loading…
Cancel
Save