From 4b2a7056c7a4db8cf74c7b449a6368ad24648fc7 Mon Sep 17 00:00:00 2001 From: Carlos Santana Date: Wed, 25 Oct 2023 23:24:03 -0400 Subject: [PATCH] fix reset-environment script env PWD single quote Signed-off-by: Carlos Santana --- lab/bin/reset-environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab/bin/reset-environment b/lab/bin/reset-environment index dc2134584..3cc4f5b94 100644 --- a/lab/bin/reset-environment +++ b/lab/bin/reset-environment @@ -87,7 +87,7 @@ RESOURCES_PRECREATED=${RESOURCES_PRECREATED:-""} echo "Cleaning up previous lab infrastructure..." -tf_dir=$(realpath --relative-to='$PWD' '/eks-workshop/terraform') +tf_dir=$(realpath --relative-to="$PWD" '/eks-workshop/terraform') terraform -chdir="$tf_dir" init -upgrade > /tmp/terraform-destroy-init.log terraform -chdir="$tf_dir" destroy --auto-approve > /tmp/terraform-destroy.log