Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace shebang with /usr/bin/env bash for improved portability #6876

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

mateuszkwiatkowski
Copy link
Contributor

The shebang has been updated from #!/bin/bash to #!/usr/bin/env bash to ensure better compatibility across different environments. This change was tested on NixOS using the following command:
nix-shell -p nodejs -p python3 -p poetry.

This modification should also make it easier to port the software to other operating systems, such as FreeBSD, by using a more flexible way of locating the bash interpreter.

The shebang has been updated from `#!/bin/bash` to `#!/usr/bin/env bash` to ensure better compatibility across different environments. This change was tested on NixOS using the following command:
`nix-shell -p nodejs -p python3 -p poetry`.

This modification should also make it easier to port the software to other operating systems, such as FreeBSD, by using a more flexible way of locating the `bash` interpreter.
Copy link
Collaborator

@xingyaoww xingyaoww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@xingyaoww xingyaoww enabled auto-merge (squash) February 24, 2025 17:40
@xingyaoww xingyaoww merged commit 6562297 into All-Hands-AI:main Feb 24, 2025
13 checks passed
adityasoni9998 pushed a commit to adityasoni9998/OpenHands that referenced this pull request Mar 3, 2025
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