From 27f7dc769ac690b7f12f16047c5a1acef976ac40 Mon Sep 17 00:00:00 2001 From: Orun Bhuiyan Date: Wed, 12 Jul 2023 17:32:26 -0400 Subject: [PATCH] fix: force exit on jsonlint fail stderr --- scripts/validate-json.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate-json.sh b/scripts/validate-json.sh index a57aefb..db3dfd4 100644 --- a/scripts/validate-json.sh +++ b/scripts/validate-json.sh @@ -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"