MON-494 trap error to clean terraform tmp config file
This commit is contained in:
parent
f91ad224ec
commit
57d7874dda
@ -4,6 +4,12 @@ source "$(dirname $0)/utils.sh"
|
|||||||
init
|
init
|
||||||
echo "Check terraform CI"
|
echo "Check terraform CI"
|
||||||
|
|
||||||
|
# Clean when exit
|
||||||
|
err() {
|
||||||
|
rm -f "${module}/tmp.tf"
|
||||||
|
}
|
||||||
|
trap 'err $LINENO' ERR TERM EXIT INT
|
||||||
|
|
||||||
provider_version=$(grep ^[[:space:]]*version[[:space:]]= README.md | awk '{print $3}')
|
provider_version=$(grep ^[[:space:]]*version[[:space:]]= README.md | awk '{print $3}')
|
||||||
|
|
||||||
for path in $(browse_modules "$(get_scope ${1:-})" 'inputs.tf'); do
|
for path in $(browse_modules "$(get_scope ${1:-})" 'inputs.tf'); do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user