mirror of
https://github.com/brazilofmux/tinymux
synced 2026-08-13 00:23:11 -04:00
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> |
||
|---|---|---|
| .. | ||
| pre-commit | ||