From d01b9f5703c5e636379e2bda4b456518223e33bd Mon Sep 17 00:00:00 2001 From: aidenvaines-cgi Date: Tue, 10 Mar 2026 12:15:19 +0000 Subject: [PATCH] CCM-14307 Fixing Hook path for TF Lint --- scripts/terraform/terraform.lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/terraform/terraform.lib.sh b/scripts/terraform/terraform.lib.sh index a44f8b49..30e4daf2 100644 --- a/scripts/terraform/terraform.lib.sh +++ b/scripts/terraform/terraform.lib.sh @@ -53,7 +53,7 @@ function terraform-destroy() { # dir=[path to a directory where the command will be executed, relative to the project's top-level directory, default is '.'] # opts=[options to pass to the Terraform fmt command, default is '-recursive'] function terraform-fmt() { - for d in "${PWD}infrastructure/"*; do + for d in "${PWD}/infrastructure/"*; do if [ -d "$d" ]; then terraform fmt --recursive "${d}" fi