The tool-presence check was previously extracted to `check-tools.sh`
because lefthook on Windows wraps inline `run:` blocks in `sh.exe -c
"..."`, and any `"` in the inline body conflicts with the outer argv
wrap, truncating the script passed to `sh.exe`. The visible symptom was
a parser error like `unexpected EOF while looking for matching '"'`;
after dropping `MISSING=""` it became `unexpected end of file from 'if'
command` once enough of the script was clipped.
Inlines the check back into `.lefthook.yml` and rewrites the body to
contain zero `"` characters. Bare-word variables (`${TOOL}`, `${COUNT}`,
`${MISSING}`) are left unquoted: tool names are hard-coded bare words,
`${COUNT}` is numeric, and the unquoted `${MISSING}` expansions inside
`echo`/`sed` rejoin word splits with single spaces, producing the same
final string. Literal space-bearing parts switch to single-quoted
strings (`' and '`, `'❌ You must install '`), which are inert under the
Windows wrap because the CRT argv parser only toggles on `"`. The
standalone `check-tools.sh` script is removed.
Verified via `lefthook validate` and `/bin/sh -c "..."` for all four
formatter branches (1, 2, 3, 4 missing tools); output matches the
original Oxford-style message. Windows confirmed; the earlier
`unexpected end of file from 'if'` error no longer reproduces.
Refs #12142
Signed-off-by: Amir Zarrinkafsh <3339418+nightah@users.noreply.github.com>