Skip to content

Commit 5806fb9

Browse files
fix: update blazew.ps1
Signed-off-by: Ar Rakin <rakinar2@onesoftnet.eu.org>
1 parent ec320be commit 5806fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blazew.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function Install-Node {
102102
$ZipPath = Join-Path $BlazeDir "node.zip"
103103
$NodeDir = Join-Path $BlazeDir "node"
104104

105-
Start-BitsTransfer -Source $Url -Destination $ZipPath
105+
Invoke-WebRequest -Uri $Url -OutFile $ZipPath
106106

107107
if (!$?) {
108108
Write-Error "Failed to download Node.js from $Url"
@@ -269,4 +269,4 @@ if (-not (Test-Path $BlazeEntry)) {
269269
$Process = Start-Process -FilePath $BUN_EXE -ArgumentList "$BlazeEntry $args" -NoNewWindow -PassThru
270270
$Process.WaitForExit()
271271
$ExitCode = $Process.ExitCode
272-
exit $ExitCode
272+
exit $ExitCode

0 commit comments

Comments
 (0)