Minor fixes in bin/find-invalid-json.sh

This commit is contained in:
Cody Boone Ferguson committed 2024-10-22 06:59:54 -07:00
1 parent 46ade8e1f9
commit eb5697bb99
1 file changed
+3 -3
+3 -3
View File
@@ -210,8 +210,8 @@ find . -name '*.json' -print |
if ! "$JPARSE" "$JSON_FILE" 2>/dev/null; then if ! "$JPARSE" "$JSON_FILE" 2>/dev/null; then
echo "$JSON_FILE is invalid JSON" echo "$JSON_FILE is invalid JSON"
fi fi
# this writes the invalid JSON files to the temporary error file # this writes the invalid JSON files to the temporary error file
done > "$TMP_INVALID_JSON" done > "$TMP_INVALID_JSON"
# count the invalid JSON files # count the invalid JSON files
# #
@@ -233,6 +233,6 @@ if [[ -s $TMP_INVALID_JSON ]]; then
exit 1 exit 1
fi fi
if [[ $V_FLAG -ge 1 ]]; then if [[ $V_FLAG -ge 1 ]]; then
echo "$0: debug[1]: $INVALID_JSON_COUNT invalid JSON file(s) found" 1>&2 echo "$0: debug[1]: $INVALID_JSON_COUNT invalid JSON files found" 1>&2
fi fi
exit 0 exit 0