Merge pull request #10535 from thalesmg/spellcheck-assert-file-exists-v50

ci: check if given schema.json exists before running spellcheck
This commit is contained in:
Thales Macedo Garitezi 2023-06-01 17:18:38 -03:00 committed by GitHub
commit 7055bd8564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ else
SCHEMA="$(realpath "$1")"
fi
if ! [ -f "$SCHEMA" ]; then
echo "Schema file $SCHEMA does not exist; did you forget to run 'make emqx{,-enterprise}' ?"
exit 1
fi
set +e
docker run --rm -i --name spellcheck \
-v "${PROJ_ROOT}"/scripts/spellcheck/dicts:/dicts \