Skip to content

Add repro for GitOps inline script backslash-escape stripping bug#114

Closed
AdamBaali wants to merge 1 commit intomainfrom
claude/fix-gitops-escape-stripping-UnuBw
Closed

Add repro for GitOps inline script backslash-escape stripping bug#114
AdamBaali wants to merge 1 commit intomainfrom
claude/fix-gitops-escape-stripping-UnuBw

Conversation

@AdamBaali
Copy link
Copy Markdown
Member

Adds a minimal macOS self-service package on the Workstations team that
references an inline install script containing common bash variables
($EUID, $USER, $HOME, $CURRENT_USER) in their escaped form.

GitOps validation requires the backslash escape so Fleet does not try
to resolve these as repo-level environment variables at ingestion time.
The expectation is that Fleet strips the leading backslash before
delivering the script to the host. If the install script visible in
Fleet UI (Software > package > Advanced options > Install script) or
delivered at install time still contains the literal backslashes, the
unescape step is missing and bash on the target host will error out
with "$EUID: command not found".

https://claude.ai/code/session_01BWXRyfu3TSmcG3bZfBjQnE

Adds a minimal macOS self-service package on the Workstations team that
references an inline install script containing common bash variables
(\$EUID, \$USER, \$HOME, \$CURRENT_USER) in their escaped form.

GitOps validation requires the backslash escape so Fleet does not try
to resolve these as repo-level environment variables at ingestion time.
The expectation is that Fleet strips the leading backslash before
delivering the script to the host. If the install script visible in
Fleet UI (Software > package > Advanced options > Install script) or
delivered at install time still contains the literal backslashes, the
unescape step is missing and bash on the target host will error out
with "\$EUID: command not found".

https://claude.ai/code/session_01BWXRyfu3TSmcG3bZfBjQnE
@AdamBaali
Copy link
Copy Markdown
Member Author

Sorry meant to test on my repo

@AdamBaali AdamBaali deleted the claude/fix-gitops-escape-stripping-UnuBw branch April 8, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants