pipelines: revert to ne 0

credit: @garfield69
master
ilike2burnthing 2022-08-20 00:54:48 +01:00 committed by GitHub
parent 01c77ee1fa
commit 2257b143c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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