Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: powershell

Louis Beaumonte8f774f13f1f
diff --git a/install.ps1 b/install.ps1
index f20fce23a..b5cdfd9f4 100644
--- a/install.ps1
+++ b/install.ps1
@@ -37,7 +37,8 @@ try {
Write-Host "screenpipe installed successfully! restart your terminal and run 'screenpipe'"
} catch {
- Write-Host "installation failed: $($_.Exception.Message)" -ForegroundColor Red
- # Exit with error code but don't propagate exception
- [Environment]::Exit(1)
+ $errorMessage = $_.Exception.Message
+ Write-Host "installation failed: $errorMessage" -ForegroundColor Red
+ # Clean exit without using Environment or exit commands
+ return 1
}
\ No newline at end of file