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

tests: /bin/bash -> /usr/bin/env bash #1470

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Conversation

znewman01
Copy link
Contributor

Summary

This uses bash from the user's $PATH, which is (usually) preferable to hardcoding a particular bash location: https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my

Selfishly, without this change these scripts don't work on NixOS.

Ticket Link

Fixes N/A

Release Note

NONE

This uses `bash` from the user's `$PATH`, which is (usually) preferable
to hardcoding a particular `bash` location:
https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my

Selfishly, without this change these scripts don't work on NixOS.

Signed-off-by: Zachary Newman <[email protected]>
@znewman01
Copy link
Contributor Author

Filed #1471 for the flaky CI

@dlorenc dlorenc merged commit f1a56a6 into sigstore:main Feb 16, 2022
@github-actions github-actions bot added this to the v1.6.0 milestone Feb 16, 2022
hatmarch pushed a commit to hatmarch/cosign that referenced this pull request Apr 19, 2022
This uses `bash` from the user's `$PATH`, which is (usually) preferable
to hardcoding a particular `bash` location:
https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my

Selfishly, without this change these scripts don't work on NixOS.

Signed-off-by: Zachary Newman <[email protected]>
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
This uses `bash` from the user's `$PATH`, which is (usually) preferable
to hardcoding a particular `bash` location:
https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my

Selfishly, without this change these scripts don't work on NixOS.

Signed-off-by: Zachary Newman <[email protected]>
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