forked from Chia-Network/chia-blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pre-commit: Fix a venv activation issue on linux (Chia-Network#12822)
* pre-commit: Fix a venv activation issue on linux I ended up with the same issue as in Chia-Network#12235 and using `.` instead of `source` (Which is supposed to be the same?) fixed it. * Make it all `sh`
- Loading branch information
1 parent
91bc495
commit 43d679d
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
|
||
SCRIPT_DIRECTORY=$(cd -- "$(dirname -- "$0")"; pwd) | ||
# shellcheck disable=SC1091 | ||
source "${SCRIPT_DIRECTORY}/venv/bin/activate" | ||
. "${SCRIPT_DIRECTORY}/venv/bin/activate" | ||
|
||
"$@" |