Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneesstack72

Relationships

↔ sibling #3475

#3474 install.ps1 closes the user's PowerShell window on failure when run via irm | iex

Opened by stack72 · 10/14/2026· Shipped 10/14/2026

The documented Windows install is irm https://swamp-club.com/install.ps1 | iex. Under iex the script runs inside the caller's own PowerShell session, and scripts/install.ps1 ends its failure paths with exit 1 (unsupported architecture, and the catch-all after 'Installation failed'), plus exit 0 for -Help. exit in an iex'd script exits the user's session, so the window closes and the error message and Discord help line vanish with it.

Expected: a failed install prints the error and leaves the session open.

Fix: replace exit 1 with throw (or return from Main after writing the error), and avoid leaking $ErrorActionPreference = 'Stop' into the caller's session (wrap the body in a scriptblock or function scope). -Help relies on $PSCommandPath, which is empty under iex.

swamp-club now advertises this command on every install CTA (swamp-club#3471), so this should land first.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 2 MOREISSUE_LINKED+ 5 MOREREVIEW+ 7 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

10/14/2026, 8:48:00 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack7210/14/2026, 8:17:15 PM
stack72 linked sibling of #347510/14/2026, 8:17:35 PM

Sign in to post a ripple.