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/07-cleanup.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/07-cleanup.sh') diff --git a/scripts/07-cleanup.sh b/scripts/07-cleanup.sh index 98751b6..f51363b 100755 --- a/scripts/07-cleanup.sh +++ b/scripts/07-cleanup.sh @@ -1,5 +1,9 @@ #!/bin/sh +if [ ${DEBUG:+1} ]; then + set -euxo pipefail +fi + gcloud storage rm -r gs:// gcloud dataproc clusters delete ${CLUSTER} --region=${REGION} gcloud iam service-accounts delete ${SERVICE_ACCOUNT}@${PROJECT}.iam.gserviceaccount.com -- cgit v1.2.3-18-g5258