Skip to content

Use portable shebang for bash scripts#207

Open
taylorhoward92 wants to merge 1 commit intogazebosim:mainfrom
taylorhoward92:portable-shebangs
Open

Use portable shebang for bash scripts#207
taylorhoward92 wants to merge 1 commit intogazebosim:mainfrom
taylorhoward92:portable-shebangs

Conversation

@taylorhoward92
Copy link
Copy Markdown

@taylorhoward92 taylorhoward92 commented Apr 12, 2026

🦟 Bug fix

Summary

Replace #!/bin/bash with portable #!/usr/bin/env bash in all bash scripts for portability across systems where bash may not be installed at /bin/bash (e.g. NixOS).

This came up while packaging gazebo for nixpkgs, where builds fail because /bin/bash does not exist.

Checklist

  • Signed all commits for DCO
  • Added a screen capture or video to the PR description that demonstrates the fix (as needed)
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • Updated Bazel files (if adding new files). Created an issue otherwise.
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Generated-by: Claude Code

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining `Signed-off-by` and `Generated-by` messages.

Replace #!/bin/bash with #!/usr/bin/env bash for portability across
systems where bash may not be installed at /bin/bash (e.g. NixOS,
some BSDs, non-standard installations).

Signed-off-by: Taylor Howard <taylorhoward@me.com>
Generated-by: Claude <noreply@anthropic.com>
@taylorhoward92 taylorhoward92 marked this pull request as ready for review April 12, 2026 11:18
@taylorhoward92 taylorhoward92 requested a review from ahcorde as a code owner April 12, 2026 11:18
@taylorhoward92 taylorhoward92 changed the title Use portable shebang (#!/usr/bin/env bash) for bash scripts Use portable shebang for bash scripts Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants