From f51ccc9ec9588dd124b0cb2886fd1c3ce97f66d3 Mon Sep 17 00:00:00 2001 From: aidenvaines-cgi Date: Tue, 10 Mar 2026 12:15:26 +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 1f0aeb4ef..8a488bf41 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