diff --git a/bin/mod-tidy b/bin/mod-tidy index 0c66f25..b3d0971 100755 --- a/bin/mod-tidy +++ b/bin/mod-tidy @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -xeuo pipefail diff --git a/ci/lint b/ci/lint index 8c52243..f84eaa1 100755 --- a/ci/lint +++ b/ci/lint @@ -1,9 +1,9 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail REPO_ROOT=$(git rev-parse --show-toplevel) cd "$REPO_ROOT" # shellcheck disable=SC2046 -shellcheck -x $(awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(git ls-files)) +shellcheck -x $(awk '/#!\/usr\/bin\/env/&&FNR==1{print FILENAME}' $(git ls-files)) find . \( -name 'WORKSPACE' -o -name 'BUILD' -o -name '*.bzl' \) -exec buildifier {} + diff --git a/ci/list_toolchains_platforms b/ci/list_toolchains_platforms index a7d0342..fae9ab8 100755 --- a/ci/list_toolchains_platforms +++ b/ci/list_toolchains_platforms @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail indent() { sed 's/^/ /'; } diff --git a/ci/release b/ci/release index 5149c64..b166828 100755 --- a/ci/release +++ b/ci/release @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -xeuo pipefail cd "$(git rev-parse --show-toplevel)" diff --git a/ci/test b/ci/test index 269510d..5aaac7a 100755 --- a/ci/test +++ b/ci/test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -xeuo pipefail bazel test ... diff --git a/contrib/makerel b/contrib/makerel index 045b422..de614db 100755 --- a/contrib/makerel +++ b/contrib/makerel @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail zigdir=out/zig-x86_64-linux-musl-x86_64_v3 diff --git a/release b/release index c3a4976..d49de26 100755 --- a/release +++ b/release @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -xeuo pipefail sign=(-u motiejus@jakstys.lt)