Skip to content

fix(install): support piping bootstrap script to bash - #13

Merged
bfirestone merged 1 commit into
mainfrom
codex/fix-piped-installer
Sep 9, 2026
Merged

bfirestone merged 1 commit into
mainfrom
codex/fix-piped-installer

Conversation

@bfirestone

@bfirestone bfirestone commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

The documented curl .../scripts/install.sh | bash command failed under set -u because Bash leaves BASH_SOURCE[0] unset when reading stdin. Default the source guard to $0 so piped scripts execute while sourcing still only defines helpers.

Regression tests cover file and piped --help, plus the exact no-argument pipe form with an unsupported platform fixture that prevents host installation. The full bootstrap test script and ShellCheck pass. The new tests reproduced the original error before the fix.

Hosted CI passed on 9de16ae: lint and Linux/macOS build, vet, Go tests, and bootstrap/release script tests.

@bfirestone
bfirestone marked this pull request as ready for review September 9, 2026 19:13
@bfirestone
bfirestone merged commit 07c1e93 into main Sep 9, 2026
3 checks passed
@bfirestone
bfirestone deleted the codex/fix-piped-installer branch September 9, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant