Make run_in_venv POSIX compliant (not just Bash)

This commit is contained in:
Andrew Ferrazzutti
2025-02-07 10:06:01 -05:00
parent c6c04d399f
commit 2f8c31797b
@@ -23,14 +23,14 @@
set -e
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
cd -- "$(dirname -- "$0")/.."
repo_root=$(git rev-parse --show-cdup)
venv_path=${repo_root:-./}.venv
[ -d "$venv_path" ] || python3.11 -m venv "$venv_path"
source "$venv_path/bin/activate"
. "$venv_path/bin/activate"
pip install -e ."[dev]"
[ $# -gt 1 ] && $*
[ $# -gt 1 ] && "$@"