Skip to content

Commit

Permalink
Use /usr/bin/env bash in shebangs to make them universal (element-hq#…
Browse files Browse the repository at this point in the history
…2735)

Some systems (like nixos) don't have bash living at `/bin/bash` so using
`/usr/bin/env bash` we can make these scripts universal.

### Pull Request Checklist

<!-- Please read docs/CONTRIBUTING.md before submitting your pull
request -->

* [X] I have added added tests for PR _or_ I have justified why this PR
doesn't need tests.
* [x] Pull request includes a [sign
off](https://github.com/matrix-org/dendrite/blob/main/docs/CONTRIBUTING.md#sign-off)

Signed-off-by: `Dov Alperin <[email protected]>`

Signed-off-by: `Dov Alperin <[email protected]>`
  • Loading branch information
DAlperin authored Sep 27, 2022
1 parent 12649cc commit b5bfff4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/docker/images-build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

cd $(git rev-parse --show-toplevel)

Expand Down
2 changes: 1 addition & 1 deletion build/docker/images-pull.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

TAG=${1:-latest}

Expand Down
2 changes: 1 addition & 1 deletion build/docker/images-push.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

TAG=${1:-latest}

Expand Down
2 changes: 1 addition & 1 deletion run-sytest.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Runs SyTest either from Docker Hub, or from ../sytest. If it's run
# locally, the Docker image is rebuilt first.
Expand Down
2 changes: 1 addition & 1 deletion show-expected-fail-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
#
# Parses a results.tap file from SyTest output and a file containing test names (a test whitelist)
# and checks whether a test name that exists in the whitelist (that should pass), failed or not.
Expand Down

0 comments on commit b5bfff4

Please sign in to comment.