From de7beb8a841f8a255708b35ca73d12476999b31b Mon Sep 17 00:00:00 2001 From: OA Hsiao Date: Tue, 23 Jun 2026 17:32:52 +0800 Subject: [PATCH] fix(launcher): escape parens in winget error echo to prevent cmd parse error Unescaped parentheses in '(App Installer)' inside the 'if errorlevel 1 (...)' block made cmd.exe misparse the block, failing with 'is was unexpected at this time.' on machines without Node.js (the only path that reaches this branch). Escaping the parens as ^( ^) fixes the parse while keeping the printed text identical. --- M2_LOG.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/M2_LOG.cmd b/M2_LOG.cmd index e4bc0fe..9891ca7 100644 --- a/M2_LOG.cmd +++ b/M2_LOG.cmd @@ -93,7 +93,7 @@ if not errorlevel 1 ( echo [INFO] Node.js not found. Trying automatic install via winget ... where winget >nul 2>nul if errorlevel 1 ( - echo [ERROR] winget (App Installer) is not available; cannot auto-install Node.js. + echo [ERROR] winget ^(App Installer^) is not available; cannot auto-install Node.js. exit /b 1 )