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