From c40db791f4a9e88f3a6e7ad49c505594bed004ce Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Tue, 21 Oct 2025 01:45:12 -0700 Subject: [PATCH] lets see if it reads the vars --- web/backupbot.cgi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/web/backupbot.cgi b/web/backupbot.cgi index a7ed333..5224202 100644 --- a/web/backupbot.cgi +++ b/web/backupbot.cgi @@ -16,9 +16,12 @@ def read_env(): with open(ENV_FILE) as f: for line in f: line = line.strip() - if line and not line.startswith("#") and "=" in line: - key, val = line.split("=", 1) - env[key.strip()] = val.strip() + if not line or line.startswith("#") or "=" not in line: + continue + key, val = line.split("=", 1) + key = key.strip() + val = val.strip().split("#")[0].strip() # strip inline comments + env[key] = val return env