Skip to content

Commit

Permalink
Secure not to activate multiple venv in pre_commit hook (home-assista…
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen authored Jun 10, 2021
1 parent 4722fdf commit 453da10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/run-in-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 453da10

Please sign in to comment.