fix: unquote PAYLOAD heredoc so runtime vars are expanded #49
Reference in New Issue
Block a user
Delete Branch "feat/push-monitoring-agent-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
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)