Skip to content

Commit

Permalink
[ci] Use /usr/bin/env for improved compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-gilligan committed Feb 12, 2024
1 parent 20c6d79 commit 4e03289
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ci/check_all_toolchains_tested.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail

# Check whether the set of toolchains tested in this file (other than
Expand Down
2 changes: 1 addition & 1 deletion ci/check_fmt.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail
rustfmt --check $(find . -iname '*.rs' -type f -not -path './target/*')
2 changes: 1 addition & 1 deletion ci/check_job_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail
which yq > /dev/null
jobs=$(for i in $(find .github -iname '*.yaml' -or -iname '*.yml')
Expand Down
2 changes: 1 addition & 1 deletion ci/check_msrv.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail

# Usage: msrv <crate-name>
Expand Down
2 changes: 1 addition & 1 deletion ci/check_readme.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail

# Install again in case the installation failed during the
Expand Down
2 changes: 1 addition & 1 deletion ci/check_versions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail

# Usage: version <crate-name>
Expand Down
2 changes: 1 addition & 1 deletion githooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -eo pipefail
./ci/check_fmt.sh
./ci/check_job_dependencies.sh
Expand Down

0 comments on commit 4e03289

Please sign in to comment.