Give useful error if z-schema is missing
This commit is contained in:
parent
cf3d75103c
commit
b2aae762fc
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
#!/bin/bash -e
|
||||
# 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
|
||||
do
|
||||
split_path=(${line///// })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue