Skip to content

Commit

Permalink
fix: force exit on jsonlint fail stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
orvn committed Jul 12, 2023
1 parent 3dbe6a0 commit 27f7dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi

ERRORS=0
for file in $(git diff --name-only --diff-filter=AM origin/${GITHUB_BASE_REF} | grep .json); do
jsonlint "$file" || ERRORS=$((ERRORS+1))
jsonlint -q "$file" || ERRORS=$((ERRORS+1))
done
if [[ "$ERRORS" -ne "0" ]]; then
echo "$ERRORS errors found during JSON validation"
Expand Down

0 comments on commit 27f7dc7

Please sign in to comment.