chia-blockchain/activated.sh
dustinface 43d679dba3
pre-commit: Fix a venv activation issue on linux (#12822)
* pre-commit: Fix a venv activation issue on linux

I ended up with the same issue as in https://github.com/Chia-Network/chia-blockchain/pull/12235 and using `.` instead of `source` (Which is supposed to be the same?) fixed it.

* Make it all `sh`
2022-08-09 18:27:11 -05:00

10 lines
155 B
Bash
Executable File

#!/bin/sh
set -o errexit
SCRIPT_DIRECTORY=$(cd -- "$(dirname -- "$0")"; pwd)
# shellcheck disable=SC1091
. "${SCRIPT_DIRECTORY}/venv/bin/activate"
"$@"