From 6317e228dfb9e0134894d46e00f2b95ca9ade912 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Mon, 29 Apr 2024 10:32:15 +0200 Subject: [PATCH] Script should fail if called script fails --- test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.sh b/test.sh index 1e1590541..ef3f0600b 100755 --- a/test.sh +++ b/test.sh @@ -1,4 +1,8 @@ #!/usr/bin/env bash + +set -e +set -o pipefail + if [ -z "$MATRIX_SCALA" ]; then echo "Error: the environment variable MATRIX_SCALA is not set" exit 1