Skip to content

Preserve apostrophes in fleet-check helper paths (polish for #4, R1) #25

Open

Description

@jparker2006

Follow-up of #4 (spec #1)

R1 [polish] catalog/fleet-check/check.sh:14 (Sweep): literal replacement of fleet_sh inside a single-quoted shell assignment breaks an existing helper path containing an apostrophe. Found in pull request #16 at a47c390; this narrow configuration case is polish and does not block the merge.

Reproduced from a clean pinned checkout with a synthetic helper. A path ending in helper with spaces.sh runs the helper, prints start #4 and exits 0. A path ending in helper's script.sh does not run the helper, produces shell errors and prints a failure wake. The format allows string parameter values and replaces them literally, so this value reaches the assignment unchanged.

Fix: preserve apostrophes when loading fleet_sh, for example by reading the substituted path through a quoted heredoc instead of embedding it in a single-quoted shell assignment. Add a regression case showing that the same existing helper runs from an apostrophe-containing directory. An equivalent fix that treats the path as literal data is acceptable.

This is not a missing credential or an established security finding. The script correctly explains its same-thread sandbox and existing gh login.

Activity

  1. added
    needs-triage
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions