From e38447c975b19fc6c207dd63e63b68ec4243e359 Mon Sep 17 00:00:00 2001 From: Marko Lisica <83164494+marko-lisica@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:28:38 +0100 Subject: [PATCH] Explain variable escaping (#25410) Related to: #23238 --- articles/secret-variables.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/articles/secret-variables.md b/articles/secret-variables.md index d3ecd4a5d1..bc1e95b736 100644 --- a/articles/secret-variables.md +++ b/articles/secret-variables.md @@ -115,6 +115,10 @@ Afterward, you can upload the script/profile with secret variables via the Fleet _Note:_ The checksum of Apple DDM profiles with secret variables now includes the timestamp of the last secrets update. +## Escaping variable and interpolation + +The dollar sign ($) can be escaped so it's not considered a variable by using a backslash (e.g. `\$100`). Additionally, `MY${variable}HERE` syntax can be used to put strings around the variable. + ## Known limitations and issues - Windows profiles are currently not re-sent to the device on fleetctl gitops update: [issue #25030](https://github.com/fleetdm/fleet/issues/25030)