From f1d310658f8f8d7b1c1c7cf802cb98a451a61ed1 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 26 Jan 2025 15:08:12 +0100 Subject: Add debug env on scripts --- scripts/05-dataproc-submit.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/05-dataproc-submit.sh') diff --git a/scripts/05-dataproc-submit.sh b/scripts/05-dataproc-submit.sh index b2c9e42..5b2153e 100755 --- a/scripts/05-dataproc-submit.sh +++ b/scripts/05-dataproc-submit.sh @@ -1,6 +1,10 @@ #!/bin/sh -set -e +set -eu + +if [ ${DEBUG:+1} ]; then + set -xo pipefail +fi if [ "$#" -ne 1 ]; then echo "Usage: 'sh ${PWD}/$0 '" -- cgit v1.2.3-18-g5258