Commit e949ecc
fix(core): escape backslash in sed command for CRLF stripping in Dockerfile template
The sed pattern 's/\r$//' in a TypeScript template string was being interpreted
as a literal carriage return (\r), producing invalid shell syntax in the generated
Dockerfile. Escaping to '\\r' ensures the generated Dockerfile contains the
literal text '\r', correctly stripping Windows-style CRLF line endings from
entrypoint.sh.
INVARIANT: ∀ generated Dockerfile: sed pattern renders as 's/\r$//' in shell
PURITY: CORE - pure template transformation, no side effects
Fixes #151
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 856dbf3 commit e949ecc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
0 commit comments