mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-26 00:37:18 +00:00
clarify error messages in validate_all.sh
This commit is contained in:
parent
32b142c8e0
commit
cfd52fce8d
1 changed files with 6 additions and 6 deletions
|
@ -18,7 +18,7 @@ set -x
|
||||||
|
|
||||||
diffs=`git status --porcelain | wc -l`
|
diffs=`git status --porcelain | wc -l`
|
||||||
if ! [ $diffs -eq 0 ]; then
|
if ! [ $diffs -eq 0 ]; then
|
||||||
echo "Please make sure you run ./jq_all_the_things.sh before commiting."
|
echo "ERROR: Please commit your changes, and make sure you run ./jq_all_the_things.sh before committing."
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -31,7 +31,7 @@ find -name "*.json" -exec chmod -x "{}" \;
|
||||||
diffs=`git status --porcelain | wc -l`
|
diffs=`git status --porcelain | wc -l`
|
||||||
|
|
||||||
if ! [ $diffs -eq 0 ]; then
|
if ! [ $diffs -eq 0 ]; then
|
||||||
echo "Please make sure you run remove the executable flag on the json files before commiting: find -name "*.json" -exec chmod -x \"{}\" \\;"
|
echo "ERROR: Please make sure you run remove the executable flag on the json files before committing: find -name "*.json" -exec chmod -x \"{}\" \\;"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ do
|
||||||
jsonschema -i ${dir} schema_clusters.json
|
jsonschema -i ${dir} schema_clusters.json
|
||||||
rc=$?
|
rc=$?
|
||||||
if [[ $rc != 0 ]]; then
|
if [[ $rc != 0 ]]; then
|
||||||
echo "Error on ${dir}"
|
echo "ERROR on ${dir}"
|
||||||
exit $rc
|
exit $rc
|
||||||
fi
|
fi
|
||||||
echo ''
|
echo ''
|
||||||
|
@ -55,7 +55,7 @@ do
|
||||||
jsonschema -i ${dir} schema_galaxies.json
|
jsonschema -i ${dir} schema_galaxies.json
|
||||||
rc=$?
|
rc=$?
|
||||||
if [[ $rc != 0 ]]; then
|
if [[ $rc != 0 ]]; then
|
||||||
echo "Error on ${dir}"
|
echo "ERROR on ${dir}"
|
||||||
exit $rc
|
exit $rc
|
||||||
fi
|
fi
|
||||||
echo ''
|
echo ''
|
||||||
|
@ -67,7 +67,7 @@ do
|
||||||
jsonschema -i ${dir} schema_misp.json
|
jsonschema -i ${dir} schema_misp.json
|
||||||
rc=$?
|
rc=$?
|
||||||
if [[ $rc != 0 ]]; then
|
if [[ $rc != 0 ]]; then
|
||||||
echo "Error on ${dir}"
|
echo "ERROR on ${dir}"
|
||||||
exit $rc
|
exit $rc
|
||||||
fi
|
fi
|
||||||
echo ''
|
echo ''
|
||||||
|
@ -79,7 +79,7 @@ do
|
||||||
jsonschema -i ${dir} schema_vocabularies.json
|
jsonschema -i ${dir} schema_vocabularies.json
|
||||||
rc=$?
|
rc=$?
|
||||||
if [[ $rc != 0 ]]; then
|
if [[ $rc != 0 ]]; then
|
||||||
echo "Error on ${dir}"
|
echo "ERROR on ${dir}"
|
||||||
exit $rc
|
exit $rc
|
||||||
fi
|
fi
|
||||||
echo ''
|
echo ''
|
||||||
|
|
Loading…
Reference in a new issue