1
mirror of https://git.dn42.dev/dn42/registry.git synced 2025-01-14 10:27:27 +01:00
registry/check-my-stuff
2017-11-12 08:16:22 -07:00

23 lines
354 B
Bash
Executable File

#!/bin/sh
set -eo pipefail
if [ "$#" -eq "0" ]
then
echo "Usage: $0 YOUR-MNT"
exit
fi
if [ "$1" = "--all" ]
then
MNT=""
else
MNT="-m $1"
fi
BASE="$(realpath "$0")"
BASE="$(dirname "$BASE")"
cd "$BASE" || exit 1
utils/schema-check/dn42-schema.py -v scan data/ $MNT || ( echo "Schema validation failed, please check above!" ; exit 1 )