From 5718924d4190d2933f5b86b8fb8d0a324aae7505 Mon Sep 17 00:00:00 2001 From: aidenvaines-cgi Date: Tue, 10 Mar 2026 14:40:30 +0000 Subject: [PATCH] CCM-14307 Fixing Hook path for TF Lint --- scripts/terraform/terraform.lib.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 scripts/terraform/terraform.lib.sh diff --git a/scripts/terraform/terraform.lib.sh b/scripts/terraform/terraform.lib.sh deleted file mode 100644 index eeca8fe..0000000 --- a/scripts/terraform/terraform.lib.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# WARNING: Please DO NOT edit this file! It is maintained in the Repository Template (https://github.com/nhs-england-tools/repository-template). Raise a PR instead. - -set -euo pipefail - -# A set of Terraform functions written in Bash. -# -# Usage: -# $ source ./terraform.lib.sh - -# ============================================================================== -# Common Terraform functions. - -# Format Terraform code. -# Arguments (provided as environment variables): -# 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 - if [ -d "$d" ]; then - terraform fmt --recursive "${d}" - fi - done -}