Skip to content

fix: use portable shebang in sample hooks#1

Open
maxonvim wants to merge 1 commit intomainfrom
fix/portable-shebang-sample-hooks
Open

fix: use portable shebang in sample hooks#1
maxonvim wants to merge 1 commit intomainfrom
fix/portable-shebang-sample-hooks

Conversation

@maxonvim
Copy link
Copy Markdown
Owner

@maxonvim maxonvim commented Apr 7, 2026

On some systems, like NixOS or certain BSDs, the shell isn't located at /bin/sh. Using #!/usr/bin/env sh instead resolves this by searching the user's PATH, matching the pattern already used in the Ruby sample hooks (pre-connect.sample and pre-deploy.sample).

On some systems, like NixOS or certain BSDs, the shell isn't located at /bin/sh. Using #!/usr/bin/env sh instead resolves this by searching the user's PATH, matching the pattern already used in the Ruby sample hooks.
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