From 2257b143c2eef144becf153d0990724d6a1d3282 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Sat, 20 Aug 2022 00:54:48 +0100 Subject: [PATCH] pipelines: revert to ne 0 credit: @garfield69 --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 39c9a551b..321612a4a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -375,10 +375,10 @@ stages: # set fail as false fail=0 ajv test -d "src/Jackett.Common/Definitions/*.yml" -s "src/Jackett.Common/Definitions/schema.json" --valid --all-errors -c ajv-formats - if [ "$?" -eq 1 ]; then + if [ "$?" -ne 0 ]; then fail=1 fi - if [ "$fail" -eq 1 ]; then + if [ "$fail" -ne 0 ]; then echo "Validation Failed" exit 1 fi