Give useful error if z-schema is missing

This commit is contained in:
Daniel Wagner-Hall 2015-10-19 12:36:49 +01:00
parent cf3d75103c
commit b2aae762fc

View file

@ -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///// })