Skip to content

Commit

Permalink
pass args to command
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Dec 4, 2024
1 parent c662419 commit f566bf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
name: Markdown Table of Contents
entry: >-
bash -eu -o pipefail -c
"echo ARGS: \"$@\"; for f in $@; do
[ -f \"$f\" ] && markdown-toc -i $f;
"for f in $@; do
[[ \"x$f\" = x--* ]] && export MDTOC_ARGS=\"$f $MDTOC_ARGS\" && continue;
[ -f \"$f\" ] && markdown-toc $MDTOC_ARGS -i $f;
done"
language: system

0 comments on commit f566bf5

Please sign in to comment.