mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-24 15:03:43 +01:00
Give useful error if z-schema is missing
This commit is contained in:
parent
cf3d75103c
commit
b2aae762fc
|
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
# Runs z-schema over all of the schema files (looking for matching examples)
|
# Runs z-schema over all of the schema files (looking for matching examples)
|
||||||
|
|
||||||
|
if ! which z-schema; then
|
||||||
|
echo >&2 "Need to install z-schema; run: sudo npm install -g z-schema"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
find schema/v1/m.* | while read line
|
find schema/v1/m.* | while read line
|
||||||
do
|
do
|
||||||
split_path=(${line///// })
|
split_path=(${line///// })
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue