Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/cli/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,9 @@ function Main {
$installLog = Join-Path $VersionDir "install.log"
Push-Location $VersionDir
try {
$env:CI = "true"
& "$BinDir\vp.exe" install --silent *> $installLog
# Use cmd /c so CI=true is scoped to the child process only,
# avoiding leaking it into the user's shell session.
cmd /c "set CI=true && `"$BinDir\vp.exe`" install --silent" *> $installLog
if ($LASTEXITCODE -ne 0) {
Write-Host "error: Failed to install dependencies. See log for details: $installLog" -ForegroundColor Red
exit 1
Expand Down
Loading