gunk-dev/the-valley

prose-format.sh

source6f81ceede276main's published tip history
380 bytes
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.
6read -ra fmtArgs <<< "$proseFmtArgs"
7cd "$tree" || exit 1
8find . -name '*.md' -print0 | xargs -0 --no-run-if-empty \
9 prettier "${fmtArgs[@]}" --check
10touch "$out"