From 24021f4742244df8b5d6196e37f5ac8fc5e82353 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 3 Dec 2022 19:03:55 +0100 Subject: fix preludes in bash scripts --- ci | 1 + scripts/pre-commit | 1 + scripts/setup-hooks | 1 + 3 files changed, 3 insertions(+) diff --git a/ci b/ci index d9f0189..3261375 100755 --- a/ci +++ b/ci @@ -1,5 +1,6 @@ #!/usr/bin/env bash set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe docker-compose build --pull diff --git a/scripts/pre-commit b/scripts/pre-commit index b75ea9f..8a98a0e 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe if ! command -v git-clang-format &> /dev/null; then echo "Please make sure git-clang-format is available." >&2 diff --git a/scripts/setup-hooks b/scripts/setup-hooks index 745c7c7..f4d1b1f 100755 --- a/scripts/setup-hooks +++ b/scripts/setup-hooks @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" script_dir="$( cd -- "$script_dir" && pwd )" -- cgit v1.2.3