diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-12-03 18:50:25 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-12-03 22:23:09 +0100 |
commit | d71d2ddace492f1b20716373879e5f931c87b78c (patch) | |
tree | bfd64b047f4c139c53849ff1c873d05253c9f2fd /test | |
parent | docker: factor out cron stuff into schedule.sh (diff) | |
download | cgitize-d71d2ddace492f1b20716373879e5f931c87b78c.tar.gz cgitize-d71d2ddace492f1b20716373879e5f931c87b78c.zip |
fix preludes in bash scripts
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/docker/git_server/setup_repo.sh | 1 | ||||
-rwxr-xr-x | test/integration/docker/test.sh | 1 | ||||
-rwxr-xr-x | test/integration/example/test.sh | 1 | ||||
-rwxr-xr-x | test/integration/local/test.sh | 1 |
4 files changed, 4 insertions, 0 deletions
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 )" |