fix: don't terminate calling shell in windows install scripts

This commit is contained in:
CJ van den Berg 2025-06-24 21:41:53 +02:00
parent 63c8caaace
commit 1853955b4e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 6 additions and 4 deletions

View file

@ -18,7 +18,7 @@ if (Test-Path $existing_flow) {
$existing_version = $matches[1] $existing_version = $matches[1]
if ($version -eq $existing_version) { if ($version -eq $existing_version) {
Write-Host "flow is up-to-date (version $version @ $install_dir)" Write-Host "flow is up-to-date (version $version @ $install_dir)"
exit 0 return
} }
} }
} }
@ -28,7 +28,8 @@ switch ($env:PROCESSOR_ARCHITECTURE) {
"ARM64" { $arch = "aarch64" } "ARM64" { $arch = "aarch64" }
default { default {
Write-Host "unknown architecture: $($env:PROCESSOR_ARCHITECTURE)" Write-Host "unknown architecture: $($env:PROCESSOR_ARCHITECTURE)"
exit 1 $LASTEXITCODE = 1
return
} }
} }

View file

@ -18,7 +18,7 @@ if (Test-Path $existing_flow) {
$existing_version = $matches[1] $existing_version = $matches[1]
if ($version -eq $existing_version) { if ($version -eq $existing_version) {
Write-Host "flow is up-to-date (version $version @ $install_dir)" Write-Host "flow is up-to-date (version $version @ $install_dir)"
exit 0 return
} }
} }
} }
@ -28,7 +28,8 @@ switch ($env:PROCESSOR_ARCHITECTURE) {
"ARM64" { $arch = "aarch64" } "ARM64" { $arch = "aarch64" }
default { default {
Write-Host "unknown architecture: $($env:PROCESSOR_ARCHITECTURE)" Write-Host "unknown architecture: $($env:PROCESSOR_ARCHITECTURE)"
exit 1 $LASTEXITCODE = 1
return
} }
} }