fix: install.sh line 318 — don't zero out env vars before --non-interactive reads them

The local initialization RC_URL="" on line 318 was destroying
environment variables before the non-interactive block (line 330+)
could read them via ${RC_URL:-${ROCKETCHAT_BASE_URL:-}}.

Fix: use ${RC_URL:-} to preserve values already set in the environment.
This commit is contained in:
Hermes Agent
2026-06-03 10:14:07 +02:00
parent 88b7149dd1
commit e3dc543af5
+1 -1
View File
@@ -315,7 +315,7 @@ msg found_hermes "$HERMES_DIR"
# ─── Detect existing installation ─────────────────────────
ENV_FILE="$HOME/.config/hermes/rocketchat.env"
HAVE_EXISTING=false
RC_URL="" RC_BOT_USER="" RC_BOT_PASS="" RC_HOME_CHANNEL=""
RC_URL="${RC_URL:-}" RC_BOT_USER="${RC_BOT_USER:-}" RC_BOT_PASS="${RC_BOT_PASS:-}" RC_HOME_CHANNEL="${RC_HOME_CHANNEL:-}"
if [ -f "$ENV_FILE" ]; then
HAVE_EXISTING=true