Skip to content

Conversation

mjkillough
Copy link
Contributor

Use #!/usr/bin/env bash for shebang, rather than #!/bin/bash. The
latter isn't portable, as at least *BSD put bash in /usr/bin.

This is currently stopping caching from working on FreeBSD builds, which
Travis now supports. (Example 1, Example 2).

I have verified that changing the shebang allows the script to run on a FreeBSD VM. I don't understand enough about what the script is doing to know how to test it thoroughly.

Use `#!/usr/bin/env bash` for shebang, rather than `#!/bin/bash`. The
latter isn't portable, as at least *BSD put `bash` in `/usr/bin`.

This is currently stopping caching from working on FreeBSD builds, which
Travis now supports.
@gezalore
Copy link
Contributor

FWIW casher also needs sudo pkg install -y md5deep on FreeBSD

@BanzaiMan BanzaiMan merged commit 0537c93 into travis-ci:bash Jun 22, 2020
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.

3 participants