Skip to content

Instantly share code, notes, and snippets.

@btisdall
Created March 28, 2014 15:14
Show Gist options
  • Save btisdall/9835121 to your computer and use it in GitHub Desktop.
Save btisdall/9835121 to your computer and use it in GitHub Desktop.
for i in $(git ls-files '*.json'); do echo -n "Checking $i..."; if ruby -rjson -e 'JSON.parse(ARGF.read)' $i; then echo "OK"; else echo "$i failed validation"; break; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment