diff --git a/modules/deploy/create.sh.tpl b/modules/deploy/create.sh.tpl index 79108bb..61b5c79 100644 --- a/modules/deploy/create.sh.tpl +++ b/modules/deploy/create.sh.tpl @@ -1,5 +1,5 @@ set -x -pushd ${deploy_path} +cd ${deploy_path} pwd ls -lah . envrc @@ -54,5 +54,5 @@ if [ $EXITCODE -eq 0 ]; then echo "success..."; terraform output -json -state="${deploy_path}/tfstate" > ${deploy_path}/outputs.json fi -popd + exit $EXITCODE diff --git a/modules/deploy/destroy.sh.tpl b/modules/deploy/destroy.sh.tpl index bcf059c..17b3747 100644 --- a/modules/deploy/destroy.sh.tpl +++ b/modules/deploy/destroy.sh.tpl @@ -1,5 +1,5 @@ set -x -pushd ${deploy_path} +cd ${deploy_path} pwd ls -lah . envrc @@ -11,4 +11,3 @@ if [ -z "${skip_destroy}" ]; then else echo "Not destroying deployed module, it will no longer be managed here." fi -popd