From 2c4a5e716924dd7cefe693a71949b5123aa81f60 Mon Sep 17 00:00:00 2001 From: Lars Gohlke Date: Wed, 23 Oct 2024 20:53:00 +0200 Subject: [PATCH] fixed wrong error handling --- tools/terraform.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/terraform.sh b/tools/terraform.sh index 41baf3c..b7cb802 100644 --- a/tools/terraform.sh +++ b/tools/terraform.sh @@ -141,12 +141,10 @@ function tf_plan { export CI_PROJECT_DIR=$(git rev-parse --show-toplevel) fi - set +e # shellcheck disable=SC2086 # shellcheck disable=SC2048 terraform plan -detailed-exitcode -out "$output.plan" $* | tee "$output"; exitCode=$? - set -e # -detailed-exitcode Return detailed exit codes when the command exits. # This will change the meaning of exit codes to: # 0 - Succeeded, diff is empty (no changes)