| 1 | # shellcheck shell=bash |
| 2 | # Paths and fixtures come from the derivation environment. |
| 3 | # shellcheck disable=SC2154 |
| 4 | # The flags are one string so the formatter app and this check cannot |
| 5 | # drift; split it back into argv. |
| 6 | read -ra fmtArgs <<< "$proseFmtArgs" |
| 7 | cd "$tree" || exit 1 |
| 8 | find . -name '*.md' -print0 | xargs -0 --no-run-if-empty \ |
| 9 | prettier "${fmtArgs[@]}" --check |
| 10 | touch "$out" |