From 1076ff1e8cf55b26997fbb20931b5e8903d91041 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 14 Oct 2026 17:58:17 +0500 Subject: copy Xenial workaround from config-links --- main.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.sh b/main.sh index 1eb5268..80b3488 100755 --- a/main.sh +++ b/main.sh @@ -6,7 +6,8 @@ # Distributed under the MIT License. set -o errexit -o nounset -o pipefail -shopt -s inherit_errexit lastpipe +shopt -s inherit_errexit 2> /dev/null || true +shopt -s lastpipe _script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" _script_dir="$( cd -- "$_script_dir" && pwd )" @@ -43,7 +44,8 @@ run_test_file() { set +e ( set -o errexit -o nounset -o pipefail - shopt -s inherit_errexit lastpipe + shopt -s inherit_errexit 2> /dev/null || true + shopt -s lastpipe trap test_cleanup_global EXIT test_setup_global -- cgit v1.3