mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Secure not to activate multiple venv in pre_commit hook (#51715)
This commit is contained in:
parent
4722fdf465
commit
453da10b62
@ -15,6 +15,7 @@ my_path=$(git rev-parse --show-toplevel)
|
||||
for venv in venv .venv .; do
|
||||
if [ -f "${my_path}/${venv}/bin/activate" ]; then
|
||||
. "${my_path}/${venv}/bin/activate"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user