From d71d2ddace492f1b20716373879e5f931c87b78c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 3 Dec 2022 18:50:25 +0100 Subject: fix preludes in bash scripts --- test/integration/docker/git_server/setup_repo.sh | 1 + test/integration/docker/test.sh | 1 + test/integration/example/test.sh | 1 + test/integration/local/test.sh | 1 + 4 files changed, 4 insertions(+) (limited to 'test') diff --git a/test/integration/docker/git_server/setup_repo.sh b/test/integration/docker/git_server/setup_repo.sh index 82ae711..c5bb32c 100755 --- a/test/integration/docker/git_server/setup_repo.sh +++ b/test/integration/docker/git_server/setup_repo.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe readonly local_repo_path="$HOME/test_repo" diff --git a/test/integration/docker/test.sh b/test/integration/docker/test.sh index 7b5b4df..e39cf84 100755 --- a/test/integration/docker/test.sh +++ b/test/integration/docker/test.sh @@ -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 )" diff --git a/test/integration/example/test.sh b/test/integration/example/test.sh index e22cec1..9c8c053 100755 --- a/test/integration/example/test.sh +++ b/test/integration/example/test.sh @@ -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 )" diff --git a/test/integration/local/test.sh b/test/integration/local/test.sh index 68c78ec..05de5ac 100755 --- a/test/integration/local/test.sh +++ b/test/integration/local/test.sh @@ -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