mirror of
https://github.com/JuliusBrussee/caveman.git
synced 2026-08-11 13:21:09 +02:00
irm .../install.ps1 | iex crashed with "Cannot bind argument to parameter 'Path' because it is null": under iex there is no script file, so $MyInvocation.MyCommand.Path is $null and Split-Path threw. The top-level param() block also can't receive arguments through a pipe. - wrap all logic in Install-Caveman, invoked at the bottom with the automatic $args (populated for file runs, empty under iex) - replace $MyInvocation.MyCommand.Path with $PSCommandPath, guarded — pipe installs skip the local-clone branch and go straight to npx - static regression tests in tests/installer/ps1-pipe.test.mjs (CI has no pwsh, so pin the pipe-safety contract textually) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011kmm2umRGb5nLxdimrwweZ