diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-01-26 15:08:12 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-01-26 15:08:12 +0100 |
commit | f1d310658f8f8d7b1c1c7cf802cb98a451a61ed1 (patch) | |
tree | 953780c981faa1608ed735e203bd55a5db56c407 /scripts/05-dataproc-submit.sh | |
parent | e7bbd6ea60fc40e8d9a31ece57b1fcc7c170f0da (diff) |
Add debug env on scripts
Diffstat (limited to 'scripts/05-dataproc-submit.sh')
-rwxr-xr-x | scripts/05-dataproc-submit.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 <num-partitions>'" |