From 8f30a6c4ec57a72e08ab367253e022385bf45704 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 8 Apr 2026 02:06:16 +0100 Subject: [PATCH] fix: force cmd shell for windows smoke update --- scripts/e2e/parallels-windows-smoke.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/e2e/parallels-windows-smoke.sh b/scripts/e2e/parallels-windows-smoke.sh index 8b2b53237c9..f0a6763c579 100644 --- a/scripts/e2e/parallels-windows-smoke.sh +++ b/scripts/e2e/parallels-windows-smoke.sh @@ -1583,7 +1583,9 @@ try { $shortTemp = Join-Path $shortRoot 'tmp' $bootstrapRoot = Join-Path $shortRoot 'bootstrap' $bootstrapBin = Join-Path $bootstrapRoot 'node_modules\.bin' - $env:PATH = "$portableGit\cmd;$portableGit\mingw64\bin;$portableGit\usr\bin;$env:PATH" + $env:PATH = "$bootstrapBin;$portableGit\cmd;$portableGit\mingw64\bin;$env:PATH" + $env:ComSpec = Join-Path $env:SystemRoot 'System32\cmd.exe' + $env:npm_config_script_shell = $env:ComSpec $openclaw = Join-Path $env:APPDATA 'npm\openclaw.cmd' $gitRoot = Join-Path $env:USERPROFILE 'openclaw' $gitEntry = Join-Path $gitRoot 'openclaw.mjs' @@ -1596,8 +1598,8 @@ try { New-Item -ItemType Directory -Path $bootstrapRoot -Force | Out-Null $env:TEMP = $shortTemp $env:TMP = $shortTemp - $env:PATH = "$bootstrapBin;$env:PATH" Write-LoggedLine ("TEMP=" + $env:TEMP) + Write-LoggedLine ("npm_config_script_shell=" + $env:npm_config_script_shell) Write-ProgressLog 'update.where-pnpm-pre' $pnpmPre = Get-Command pnpm -ErrorAction SilentlyContinue