From fc4ea774ca8e4c52f4a89c47f182abe79eb37ea5 Mon Sep 17 00:00:00 2001
From: Matthias Alphart <farmio@alphart.net>
Date: Thu, 23 May 2024 09:14:59 +0200
Subject: [PATCH] Fix run-in-env script for not running in venv (#117961)

---
 script/run-in-env.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script/run-in-env.sh b/script/run-in-env.sh
index c71738a017b..1c7f76ccc1f 100755
--- a/script/run-in-env.sh
+++ b/script/run-in-env.sh
@@ -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
-- 
GitLab