Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

docs(kandji): bash 3.2-safe header loop in the OTLP forward script

Claude06cbdb6c746e
diff --git a/docs/guides/kandji-otlp-forward-mdm.mdx b/docs/guides/kandji-otlp-forward-mdm.mdx
index 2b204adf..5e4fca58 100644
--- a/docs/guides/kandji-otlp-forward-mdm.mdx
+++ b/docs/guides/kandji-otlp-forward-mdm.mdx
@@ -110,7 +110,7 @@ args=(endpoint repair --system
--harness claude,codex
--otlp-forward-endpoint "$OTLP_FORWARD_ENDPOINT"
--otlp-forward-protocol "$OTLP_FORWARD_PROTOCOL")
-for header in "${OTLP_FORWARD_HEADERS[@]}"; do
+for header in ${OTLP_FORWARD_HEADERS[@]+"${OTLP_FORWARD_HEADERS[@]}"}; do
args+=(--otlp-forward-header "$header")
done