Skip to content

Commit de36a74

Browse files
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

File tree

OpenClaw_NULLA.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ if "!LAUNCH_REQUESTED!"=="0" (
110110
exit /b 1
111111
)
112112
)
113-
echo Waiting for the NULLA API to come up (one dot per second, up to ~2 min):
113+
echo Waiting for the NULLA API to come up ^(one dot per second, up to ~2 min^):
114114
set "READY=0"
115115
for /L %%i in (1,1,120) do (
116116
if !READY! equ 0 (
@@ -141,7 +141,7 @@ if %errorlevel% neq 0 (
141141
if "!OPENCLAW_CMD!"=="" if exist "%USERPROFILE%\.local\bin\openclaw.cmd" set "OPENCLAW_CMD=%USERPROFILE%\.local\bin\openclaw.cmd"
142142
if not "!OPENCLAW_CMD!"=="" (
143143
"%PYTHON_EXE%" "%SCRIPT_ROOT%\installer\start_windows_detached.py" --cwd "%SCRIPT_ROOT%" --stdout "%TEMP%\nulla_gateway.log" --stderr "%TEMP%\nulla_gateway.err.log" -- "!OPENCLAW_CMD!" gateway run --force --port 18789 >nul
144-
echo Starting the OpenClaw gateway (usually a few seconds)...
144+
echo Starting the OpenClaw gateway ^(usually a few seconds^)...
145145
for /L %%j in (1,1,90) do (
146146
powershell -NoProfile -Command "Start-Sleep -Seconds 1" >nul 2>&1
147147
powershell -NoProfile -Command "if (Test-NetConnection -ComputerName 127.0.0.1 -Port 18789 -InformationLevel Quiet -WarningAction SilentlyContinue) { exit 0 } else { exit 1 }" >nul 2>&1

0 commit comments

Comments
 (0)