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

Use /usr/bin/env bash instead of /bin/bash #720

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

xdevs23
Copy link
Contributor

@xdevs23 xdevs23 commented Sep 10, 2024

It's more universally supported and makes the script run on NixOS

Copy link
Collaborator

@0405ysj 0405ysj left a comment

Choose a reason for hiding this comment

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

I agree /usr/bin/env bash is better than /bin/bash, but I prefer to have united shebang between all script files under docker/. Could you modify other files as well, such as image-build-bazel-wrapper.sh or guest/run_services.sh?

Also after your modification, I would recommend you to amend commit with forced push due to our branch maintenance strategy. Thanks for the contribution!

@xdevs23
Copy link
Contributor Author

xdevs23 commented Sep 12, 2024

Sure. I force-pushed and also rebased on top of main. There is one change in a C++ file that appears to be generating a script, so make sure that is correct, as I don't have sufficient knowledge about that specific instance to know whether it's correct.

@Databean Databean added the kokoro:run Run e2e tests. label Sep 12, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Sep 12, 2024
@0405ysj 0405ysj changed the title docker: image-builder.sh: use /usr/bin/env Use /usr/bin/env bash instead of /bin/bash Sep 13, 2024
It's more universally supported and makes the scripts run on NixOS
@Databean Databean added kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Oct 14, 2024
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Oct 14, 2024
@Databean Databean merged commit ef72c8b into google:main Oct 14, 2024
10 checks passed
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.

5 participants