fix(freebsd): portable bash shebang (/usr/bin/env bash) #3

Merged
clawdie merged 1 commit from fix/freebsd-portable-bash-shebang into main 2026-06-17 18:58:02 +02:00
Owner

#!/bin/bash does not resolve on FreeBSD — bash is at /usr/local/bin/bash, not /bin. The documented first-install command ./setup-hermes.sh would fail with "bad interpreter: No such file or directory" on osa.

Switches the FreeBSD-relevant bash scripts to #!/usr/bin/env bash, which resolves the interpreter wherever it lives (FreeBSD, Linux, macOS):

  • setup-hermes.sh — the FreeBSD first-validation entrypoint
  • scripts/install.sh, scripts/kill_modal.sh

scripts/install-freebsd.sh is already #!/bin/sh (base shell), no change.

Verified: bash -n passes on all three. Harmless on Linux (env-based lookup finds /bin/bash there too).

🤖 Generated with Claude Code

`#!/bin/bash` does not resolve on FreeBSD — bash is at `/usr/local/bin/bash`, not `/bin`. The documented first-install command `./setup-hermes.sh` would fail with *"bad interpreter: No such file or directory"* on osa. Switches the FreeBSD-relevant bash scripts to `#!/usr/bin/env bash`, which resolves the interpreter wherever it lives (FreeBSD, Linux, macOS): - `setup-hermes.sh` — the FreeBSD first-validation entrypoint - `scripts/install.sh`, `scripts/kill_modal.sh` `scripts/install-freebsd.sh` is already `#!/bin/sh` (base shell), no change. Verified: `bash -n` passes on all three. Harmless on Linux (env-based lookup finds `/bin/bash` there too). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
clawdie added 1 commit 2026-06-17 18:16:55 +02:00
fix(freebsd): portable bash shebang (/usr/bin/env bash)
Some checks failed
Typecheck / typecheck (apps/bootstrap-installer) (pull_request) Has been cancelled
Contributor Attribution Check / check-attribution (pull_request) Has been cancelled
History Check / check-common-ancestor (pull_request) Has been cancelled
Lint (ruff + ty) / ruff + ty diff (pull_request) Has been cancelled
Lint (ruff + ty) / ruff enforcement (blocking) (pull_request) Has been cancelled
Lint (ruff + ty) / Windows footguns (blocking) (pull_request) Has been cancelled
Typecheck / typecheck (apps/desktop) (pull_request) Has been cancelled
Nix / nix (macos-latest) (pull_request) Has been cancelled
Nix / nix (ubuntu-latest) (pull_request) Has been cancelled
Supply Chain Audit / changes (pull_request) Has been cancelled
Typecheck / typecheck (apps/shared) (pull_request) Has been cancelled
Tests / test (1) (pull_request) Has been cancelled
Tests / test (2) (pull_request) Has been cancelled
Tests / test (3) (pull_request) Has been cancelled
Tests / test (4) (pull_request) Has been cancelled
Tests / test (5) (pull_request) Has been cancelled
Tests / test (6) (pull_request) Has been cancelled
Tests / e2e (pull_request) Has been cancelled
Typecheck / typecheck (ui-tui) (pull_request) Has been cancelled
Typecheck / typecheck (web) (pull_request) Has been cancelled
Supply Chain Audit / Scan PR for critical supply chain risks (pull_request) Has been cancelled
Supply Chain Audit / Check PyPI dependency upper bounds (pull_request) Has been cancelled
Tests / save-durations (pull_request) Has been cancelled
3c34788a0f
#!/bin/bash does not resolve on FreeBSD — bash lives at /usr/local/bin/bash,
not /bin. The documented first-install command `./setup-hermes.sh` would fail
with 'bad interpreter: No such file or directory'. Use env-based lookup so the
interpreter resolves wherever bash is on PATH (FreeBSD, Linux, macOS).

Covers setup-hermes.sh (the FreeBSD first-validation entrypoint) plus the two
scripts/ bash helpers. install-freebsd.sh is already #!/bin/sh.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
clawdie merged commit df59ba2d3a into main 2026-06-17 18:58:02 +02:00
clawdie deleted branch fix/freebsd-portable-bash-shebang 2026-06-17 18:58:02 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clawdie/hermes-bsd#3
No description provided.