update_requirements: skip pre-commit install on mac

old-commit-hash: 28d0459c69a6f9bcf511fe982ba573cb7842e385
This commit is contained in:
Adeeb Shihadeh
2022-12-30 14:44:59 -08:00
parent 371ac89f84
commit 09a1de09a3
+10 -8
View File
@@ -69,11 +69,13 @@ else
RUN="poetry run"
fi
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
$RUN pre-commit install
fi
done
if [ "$(uname)" != "Darwin" ]; then
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
$RUN pre-commit install
fi
done
fi