Created
August 11, 2017 17:23
-
-
Save dnoliver/1a754bb3a144ba2a3b695459bdfd1445 to your computer and use it in GitHub Desktop.
Script to install and run jsonlint command on Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
npm install -g jsonlint | |
FILES="$(find examples src -iname '*.json')" | |
for FILE in $FILES; do | |
echo "${FILE}" | |
jsonlint $FILE --quiet --compact || true | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment