From 2a783462a881cc3a62d663ed95097e33438e53c7 Mon Sep 17 00:00:00 2001 From: Alexandre Chapellon Date: Wed, 4 Dec 2024 16:13:18 +0100 Subject: [PATCH] debug --- .pre-commit-hooks.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 8c9aece54..037004a3c 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -32,7 +32,7 @@ name: Markdown Table of Contents entry: >- bash -eu -o pipefail -c - "for f in $@; do - markdown-toc -i $f; + "echo ARGS: \"$@\"; for f in $@; do + [ -f \"$f\" ] && markdown-toc -i $f; done" language: system