Commit de36a74
committed
fix(installer): escape parentheses in launcher echoes so cmd doesn't mis-parse the block
The real cause of the "... / : was unexpected at this time." launch crash (exit 255, regressed by the
progress-message change in #60, only partly addressed by #71): the advisory
`echo Starting the OpenClaw gateway (usually a few seconds)...` sits INSIDE the
`if not "!OPENCLAW_CMD!"=="" ( ... )` block, and its unescaped ( ) are counted by cmd as block
delimiters, breaking paren matching for the rest of the block. #71 removed the goto-in-parens but left
these parens, so it still crashed (now blaming "...").
Escape both launcher advisory echoes with ^( ^) — the same convention install_nulla.bat already uses
(e.g. ^(SearXNG^)). Verified in the real cmd parser: the block now parses, prints, loops, and gotos
with no error.1 parent f8faea9 commit de36a74
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
0 commit comments