Created
April 2, 2019 17:49
-
-
Save mut3/0b8106a538015a4e72476db6be5d4239 to your computer and use it in GitHub Desktop.
Check *.json for valid json, return failures
This file contains 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
#!/bin/bash | |
for i in *.json; do if ! jq . $i &>/dev/null; then echo "fail: ${i}"; fi; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment