mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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
|
for venv in venv .venv .; do
|
||||||
if [ -f "${my_path}/${venv}/bin/activate" ]; then
|
if [ -f "${my_path}/${venv}/bin/activate" ]; then
|
||||||
. "${my_path}/${venv}/bin/activate"
|
. "${my_path}/${venv}/bin/activate"
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user