mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-26 16:57:18 +00:00
block by default, but usable anyway with param
This commit is contained in:
parent
2c263b91de
commit
3073877d10
1 changed files with 13 additions and 8 deletions
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This file launch all validation of the jsons and schemas
|
||||||
|
# By default, It stop on file not commited.
|
||||||
|
|
||||||
|
# you could test with command ./validate_all.sh something
|
||||||
|
|
||||||
|
|
||||||
# Check Jsons format, and beautify
|
# Check Jsons format, and beautify
|
||||||
./jq_all_the_things.sh
|
./jq_all_the_things.sh
|
||||||
rc=$?
|
rc=$?
|
||||||
|
@ -10,14 +16,13 @@ fi
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# fixme to remove..
|
diffs=`git status --porcelain | wc -l`
|
||||||
# Not need anymore ow, jq stop upon error...
|
if ! [ $diffs -eq 0 ]; then
|
||||||
# diffs=`git status --porcelain | wc -l`
|
echo "Please make sure you run ./jq_all_the_things.sh before commiting."
|
||||||
#
|
if [ $# -eq 0 ]; then
|
||||||
#if ! [ $diffs -eq 0 ]; then
|
exit 1
|
||||||
# echo "Please make sure you run ./jq_all_the_things.sh before commiting."
|
fi
|
||||||
# exit
|
fi
|
||||||
#fi
|
|
||||||
|
|
||||||
# Validate schemas
|
# Validate schemas
|
||||||
for dir in clusters/*.json
|
for dir in clusters/*.json
|
||||||
|
|
Loading…
Reference in a new issue