From 1853955b4e7569f2765f04a3cfa19170711625c0 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 24 Jun 2025 21:41:53 +0200 Subject: [PATCH] fix: don't terminate calling shell in windows install scripts --- assets/install-nightly.ps1 | 5 +++-- assets/install.ps1 | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/install-nightly.ps1 b/assets/install-nightly.ps1 index f2015fc..47a6fa7 100644 --- a/assets/install-nightly.ps1 +++ b/assets/install-nightly.ps1 @@ -18,7 +18,7 @@ if (Test-Path $existing_flow) { $existing_version = $matches[1] if ($version -eq $existing_version) { 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" } default { Write-Host "unknown architecture: $($env:PROCESSOR_ARCHITECTURE)" - exit 1 + $LASTEXITCODE = 1 + return } } diff --git a/assets/install.ps1 b/assets/install.ps1 index 324c805..daea0de 100644 --- a/assets/install.ps1 +++ b/assets/install.ps1 @@ -18,7 +18,7 @@ if (Test-Path $existing_flow) { $existing_version = $matches[1] if ($version -eq $existing_version) { 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" } default { Write-Host "unknown architecture: $($env:PROCESSOR_ARCHITECTURE)" - exit 1 + $LASTEXITCODE = 1 + return } }