From c90418e5efc939c53f7d397a911b61bc6463d505 Mon Sep 17 00:00:00 2001 From: matttrach Date: Wed, 8 Oct 2025 01:56:06 -0500 Subject: [PATCH] fix: change directory rather than push it Signed-off-by: matttrach --- modules/deploy/create.sh.tpl | 4 ++-- modules/deploy/destroy.sh.tpl | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) 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