Skip to content

Commit 3c161fb

Browse files
authored
fix: change directory rather than push it (rancher#121)
Signed-off-by: matttrach <matt.trachier@suse.com>
1 parent fbbfcef commit 3c161fb

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

modules/deploy/create.sh.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set -x
2-
pushd ${deploy_path}
2+
cd ${deploy_path}
33
pwd
44
ls -lah
55
. envrc
@@ -54,5 +54,5 @@ if [ $EXITCODE -eq 0 ]; then
5454
echo "success...";
5555
terraform output -json -state="${deploy_path}/tfstate" > ${deploy_path}/outputs.json
5656
fi
57-
popd
57+
5858
exit $EXITCODE

modules/deploy/destroy.sh.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set -x
2-
pushd ${deploy_path}
2+
cd ${deploy_path}
33
pwd
44
ls -lah
55
. envrc
@@ -11,4 +11,3 @@ if [ -z "${skip_destroy}" ]; then
1111
else
1212
echo "Not destroying deployed module, it will no longer be managed here."
1313
fi
14-
popd

0 commit comments

Comments
 (0)