mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-08-16 22:30:52 +03:00
* 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`
10 lines
155 B
Bash
Executable File
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"
|
|
|
|
"$@"
|