15 lines
271 B
Bash
Executable File
15 lines
271 B
Bash
Executable File
#!/bin/sh
|
|
# script/fmt-check: check formatting (read-only). Same scope as
|
|
# script/fmt, but fails instead of writing.
|
|
set -eu
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
echo "Checking formatting..."
|
|
yarn run fmt-check 2>&1
|
|
}
|
|
|
|
main "$@"
|