From e3dc543af554c32ebea26d72bebfff3761f2326d Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 3 Jun 2026 10:14:07 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20install.sh=20line=20318=20=E2=80=94=20do?= =?UTF-8?q?n't=20zero=20out=20env=20vars=20before=20--non-interactive=20re?= =?UTF-8?q?ads=20them?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5816358..c597bab 100644 --- a/install.sh +++ b/install.sh @@ -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