Skip to content

fix(plugins): use portable shebangs in shell scripts#35350

Open
letanure wants to merge 1 commit intoanthropics:mainfrom
letanure:fix/portable-shebangs
Open

fix(plugins): use portable shebangs in shell scripts#35350
letanure wants to merge 1 commit intoanthropics:mainfrom
letanure:fix/portable-shebangs

Conversation

@letanure
Copy link
Copy Markdown

@letanure letanure commented Mar 17, 2026

Plugin hooks fail on systems where bash is not at /bin/bash (ex. on NixOS it lives under /nix/store)

11 plugin scripts still use #!/bin/bash while others already use the portable #!/usr/bin/env bash

This aligns the rest.

Partial fix in #11029.

Change #!/bin/bash to #!/usr/bin/env bash in 11 plugin shell scripts
for portability across NixOS, Alpine Docker, FreeBSD, and Git Bash.

The repo's devcontainer scripts and some plugin hooks already use the
portable form — this brings the remaining scripts in line.

Continues the fix from anthropics#11029.
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.

2 participants