Fix run-in-env script for not running in venv (#117961)

This commit is contained in:
Matthias Alphart 2024-05-23 09:14:59 +02:00 committed by GitHub
parent cd14d9b0e3
commit fc4ea774ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ if [ -s .python-version ]; then
export PYENV_VERSION
fi
if [ -n "${VIRTUAL_ENV}" ] && [ -f "${VIRTUAL_ENV}/bin/activate" ]; then
if [ -n "${VIRTUAL_ENV-}" ] && [ -f "${VIRTUAL_ENV}/bin/activate" ]; then
. "${VIRTUAL_ENV}/bin/activate"
else
# other common virtualenvs