Skip to content

Commit

Permalink
fixed wrong error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Gohlke committed Oct 23, 2024
1 parent 3bf4c51 commit 2c4a5e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c4a5e7

Please sign in to comment.