-
Notifications
You must be signed in to change notification settings - Fork 305
Make the build scripts work on FreeBSD #282
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||
| #!/bin/bash | ||||||
| #!/usr/bin/env bash | ||||||
|
|
||||||
| set -euo pipefail xtrace | ||||||
|
||||||
| set -euo pipefail xtrace | |
| set -euxo pipefail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
linttarget picks a bash path viacommand -v bash || echo /bin/bash. Ifbashexists but isn't on PATH (or ifcommand -vprints nothing), this will fall back to/bin/bashand fail with a confusing "No such file" error on platforms like FreeBSD where bash is typically in/usr/local/bin. Consider making the target fail fast with a clear error when bash can't be located, rather than defaulting to/bin/bash.