From cfa7c7153a8d7456b4eb1f6e83be896d4f2565ef Mon Sep 17 00:00:00 2001
From: Timo Furrer <tfurrer@gitlab.com>
Date: Mon, 10 Jun 2024 14:29:51 +0200
Subject: [PATCH] Set early exit options in shell scripts for tofu upgrades

---
 .gitlab/scripts/renovate-post-upgrade.sh    | 2 ++
 .gitlab/scripts/update-opentofu-versions.sh | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.gitlab/scripts/renovate-post-upgrade.sh b/.gitlab/scripts/renovate-post-upgrade.sh
index a3bfbda..6495156 100755
--- a/.gitlab/scripts/renovate-post-upgrade.sh
+++ b/.gitlab/scripts/renovate-post-upgrade.sh
@@ -1,5 +1,7 @@
 #!/usr/bin/env sh
 
+set -e
+
 # This script is just used to add the `latest_version` to the
 # list of supported versions because natively that is
 # cumbersome to achieve.
diff --git a/.gitlab/scripts/update-opentofu-versions.sh b/.gitlab/scripts/update-opentofu-versions.sh
index 9798b1c..36c372e 100755
--- a/.gitlab/scripts/update-opentofu-versions.sh
+++ b/.gitlab/scripts/update-opentofu-versions.sh
@@ -1,5 +1,7 @@
 #!/usr/bin/env sh
 
+set -e
+
 echo "Updating template files ..."
 
 templates="templates/apply.yml templates/custom-command.yml templates/destroy.yml templates/fmt.yml templates/full-pipeline.yml templates/job-templates.yml templates/plan.yml templates/test.yml templates/validate-plan-apply.yml templates/validate-plan-destroy.yml templates/validate-plan.yml templates/validate.yml"
-- 
GitLab