From b27dabe83f4a7e0dbcb825facdf2c43d3aff06b2 Mon Sep 17 00:00:00 2001 From: 35C4n0r Date: Tue, 19 May 2026 04:46:05 +0000 Subject: [PATCH] fix(install): improve regex to handle whitespace in MCP configuration check --- registry/coder-labs/modules/codex/scripts/install.sh.tftpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/coder-labs/modules/codex/scripts/install.sh.tftpl b/registry/coder-labs/modules/codex/scripts/install.sh.tftpl index e0349d97..a99880fd 100644 --- a/registry/coder-labs/modules/codex/scripts/install.sh.tftpl +++ b/registry/coder-labs/modules/codex/scripts/install.sh.tftpl @@ -164,7 +164,7 @@ function populate_config_toml() { echo "Warning: Failed to fetch MCP configuration from '$${url}', continuing..." continue } - if ! echo "$${mcp_toml}" | grep -qE '^\[mcp_servers\.'; then + if ! echo "$${mcp_toml}" | grep -qE '^[[:space:]]*\[mcp_servers\.'; then echo "Warning: Invalid MCP configuration from '$${url}' (missing [mcp_servers.*] section), continuing..." continue fi