tinymux/hooks
Stephen Dennis 6ef95166d3 Make pre-commit hook bash 3.2 compatible
The hook used `declare -A` (associative array, bash 4+ only).  On
macOS where /bin/bash is still 3.2, the declaration silently failed
and the loop iterated zero entries — so the hook printed a parse
error to stderr but skipped its actual check, defeating the
protection against committing generated files without their source.

Rewrite with parallel arrays (GENERATED_GENS / GENERATED_SRCS
indexed in lockstep), which work on bash 3.2 onward.  Verified the
hook executes cleanly under /bin/bash 3.2.57.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 19:51:41 -06:00
..
pre-commit Make pre-commit hook bash 3.2 compatible 2026-04-25 19:51:41 -06:00