chase-jay commited on
Commit
f86aaed
·
verified ·
1 Parent(s): c46220f

quickstart-windows: pipe native stdout to Out-Host in Invoke-Native

Browse files
Files changed (1) hide show
  1. quickstart-windows.ps1 +2 -2
quickstart-windows.ps1 CHANGED
@@ -39,7 +39,7 @@ function Invoke-Native([scriptblock]$Script) {
39
  $prev = $ErrorActionPreference
40
  $ErrorActionPreference = "Continue"
41
  try {
42
- & $Script
43
  return $LASTEXITCODE
44
  } finally {
45
  $ErrorActionPreference = $prev
@@ -140,7 +140,7 @@ if (-not (Test-PythonOk)) {
140
  if (-not (Test-PythonOk)) { Write-Host " [WARN] Python not found; Python-based demos will not run." -ForegroundColor Yellow }
141
  }
142
  Assert-Command "npm.cmd" "npm comes bundled with Node.js"
143
- $nodeVer = Invoke-Native { & node -v }
144
  Write-Host " Node.js & Git verified."
145
 
146
  # Pick weights by FREE memory on GPU 0 (the engine's device): BF16 needs ~14.2 GB, W8A16 ~8.5 GB.
 
39
  $prev = $ErrorActionPreference
40
  $ErrorActionPreference = "Continue"
41
  try {
42
+ & $Script | Out-Host
43
  return $LASTEXITCODE
44
  } finally {
45
  $ErrorActionPreference = $prev
 
140
  if (-not (Test-PythonOk)) { Write-Host " [WARN] Python not found; Python-based demos will not run." -ForegroundColor Yellow }
141
  }
142
  Assert-Command "npm.cmd" "npm comes bundled with Node.js"
143
+ $null = Invoke-Native { & node -v }
144
  Write-Host " Node.js & Git verified."
145
 
146
  # Pick weights by FREE memory on GPU 0 (the engine's device): BF16 needs ~14.2 GB, W8A16 ~8.5 GB.