mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
470 B
Bash
Executable File
18 lines
470 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# 🔁 Reload env to pick up newly created venv
|
|
if [[ -n "${VENV:-}" && -x "${VENV}/bin/python" && "${PYTHON:-}" != "${VENV}/bin/python" ]]; then
|
|
unset INFINITO_ENV_LOADED
|
|
unset INFINITO_ENV_PYTHON_LOADED
|
|
unset PYTHON
|
|
unset PIP
|
|
# shellcheck source=scripts/meta/env/all.sh
|
|
source "${ENV_SH:-scripts/meta/env/all.sh}"
|
|
fi
|
|
|
|
: "${PYTHON:?PYTHON not set}"
|
|
|
|
echo "🔗 Installing pre-commit hooks"
|
|
"${PYTHON}" -m pre_commit install
|