From b8f962a6f222bf0765e3a3c203886e376f43b902 Mon Sep 17 00:00:00 2001 From: aidenvaines-cgi Date: Tue, 10 Mar 2026 12:15:21 +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 a5f5702..eeca8fe 100644 --- a/scripts/terraform/terraform.lib.sh +++ b/scripts/terraform/terraform.lib.sh @@ -17,7 +17,7 @@ set -euo pipefail # 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