Add json validity check

This commit is contained in:
Rien Maertens 2017-07-29 15:08:27 +02:00
parent 94254df35a
commit 1759f41d1a
No known key found for this signature in database
GPG Key ID: 943CAB70C511D23C
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ declare release_dir="$dir/releases/$timestamp"
echo "-> Pulling latest release"
git pull
echo "-> Checking validity of data.json"
cat src/data.json | json_verify
# Create release dir and copy sources to that dir
echo "-> This release will be stored in $release_dir"
mkdir -p "$release_dir"