mirror of https://github.com/MISP/misp-objects
chg: [validation] improve validation script
parent
5f7f4b8e50
commit
6a852e49e8
|
@ -8,7 +8,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 make sure you run ./jq_all_the_things.sh before doing a PR."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -18,7 +18,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 doing a PR: find -name "*.json" -exec chmod -x \"{}\" \\;"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -33,3 +33,5 @@ done
|
||||||
jsonschema -i relationships/definition.json schema_relationships.json
|
jsonschema -i relationships/definition.json schema_relationships.json
|
||||||
|
|
||||||
./unique_uuid.py
|
./unique_uuid.py
|
||||||
|
|
||||||
|
echo "Success: All is fine, please go ahead.".
|
||||||
|
|
Loading…
Reference in New Issue