From ddf4d744c698a88a7318afd1b08493f1227ce919 Mon Sep 17 00:00:00 2001 From: Agent Date: Thu, 11 Jun 2026 20:35:24 -0400 Subject: [PATCH] fix: unquote PAYLOAD heredoc so runtime vars are expanded MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The inner PAYLOAD heredoc had a quoted delimiter ('PAYLOAD') which prevented runtime variable expansion. Changed to unquoted (PAYLOAD) so $AGENT_KEY, $CPU, etc. are correctly expanded at runtime. The double-escaping works as: install time (outer EOF): $AGENT_KEY → (in file) runtime (inner PAYLOAD): → abc123... (actual value) --- install/agent-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/agent-install.sh b/install/agent-install.sh index 701d780..e8c0563 100644 --- a/install/agent-install.sh +++ b/install/agent-install.sh @@ -62,7 +62,7 @@ collect_metrics() { } push_metrics() { - payload=\$(cat << 'PAYLOAD' + payload=\$(cat << PAYLOAD { "agent_key": "\$AGENT_KEY", "cpu": \$CPU, -- 2.43.0