Skip to content

Commit

Permalink
feat: add pipefail
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF authored and lonegunmanb committed Feb 27, 2025
1 parent f107ade commit 49dde11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avm_scripts/run-tflint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ run_tflint () {
return 0
}

set -e
set -eo pipefail
echo "==> Copy module to temp dir..."
RND="$RANDOM"
TMPDIR="/tmp/avmtester$RND"
Expand All @@ -68,7 +68,7 @@ cd "$TMPDIR"
find -type d -name .terraform -print0 | xargs -0 rm -rf
find -type f -name .terraform.lock.hcl -print0 | xargs -0 rm -rf
find -type f -name 'terraform.tfstate*' -print0 | xargs -0 rm -rf
set +e
set +eo pipefail

has_error=false

Expand Down

0 comments on commit 49dde11

Please sign in to comment.