43d679dba3
* 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`
9 lines
155 B
Bash
Executable file
9 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"
|
|
|
|
"$@"
|