aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-agent.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run-agent.py')
-rwxr-xr-xscripts/run-agent.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/run-agent.py b/scripts/run-agent.py
index b97dcd1..5c925ba 100755
--- a/scripts/run-agent.py
+++ b/scripts/run-agent.py
@@ -67,7 +67,9 @@ def load_env(file_path):
continue
key, *value = line.split("=")
- os.environ[key.strip()] = "=".join(value).strip()
+ env_name = key.strip()
+ if env_name not in os.environ:
+ os.environ[env_name] = "=".join(value).strip()
except FileNotFoundError:
pass