From b75b9b671fdba7a52b95c9aa64c26f19f25683a0 Mon Sep 17 00:00:00 2001 From: aidenvaines-bjss <54067008+aidenvaines-bjss@users.noreply.github.com> Date: Sun, 1 Feb 2026 00:42:57 +0000 Subject: [PATCH] Drift from template --- nhs-notify-repository-template | 1 + scripts/githooks/check-file-format.sh | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 160000 nhs-notify-repository-template diff --git a/nhs-notify-repository-template b/nhs-notify-repository-template new file mode 160000 index 0000000..25f6765 --- /dev/null +++ b/nhs-notify-repository-template @@ -0,0 +1 @@ +Subproject commit 25f6765fd32a1365495eb66ef5215de79519f819 diff --git a/scripts/githooks/check-file-format.sh b/scripts/githooks/check-file-format.sh index 632e536..b1e02ef 100755 --- a/scripts/githooks/check-file-format.sh +++ b/scripts/githooks/check-file-format.sh @@ -67,10 +67,8 @@ function main() { esac if command -v editorconfig-checker > /dev/null 2>&1 && ! is-arg-true "${FORCE_USE_DOCKER:-false}"; then - echo "Running editorconfig-checker natively" filter="$filter" dry_run_opt="${dry_run_opt:-}" run-editorconfig-natively else - echo "Running editorconfig-checker in Docker" filter="$filter" dry_run_opt="${dry_run_opt:-}" run-editorconfig-in-docker fi } @@ -103,7 +101,7 @@ function run-editorconfig-in-docker() { docker run --rm --platform linux/amd64 \ --volume "$PWD":/check \ "$image" \ - sh -c "set -x; ec --exclude '.git/' $dry_run_opt \$($filter) /dev/null" + sh -c "ec --exclude '.git/' $dry_run_opt \$($filter) /dev/null" } # ==============================================================================