fix(install): improve regex to handle whitespace in MCP configuration check
This commit is contained in:
parent
853ffb1558
commit
b27dabe83f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user