1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Be more precise about exit codes.

This commit is contained in:
Sascha L. Teichmann 2024-12-04 14:27:24 +01:00
parent 938ceb872a
commit 16e86051c5
2 changed files with 9 additions and 9 deletions

View file

@ -3,11 +3,11 @@
is a tool to validate local advisories files against the JSON Schema and an optional remote validator.
### Exit codes
If no fatal error occurs the program will exit with the following codes:
- `0`: all valid
- `2⁰`: schema invalid
- ``: no remote validator configured
- ``: failure in remote validation
If no fatal error occurs the program will exit with an exit code `n` with the following conditions:
- `n == 0`: all valid
- `(n / 2) % 1 == 1`: schema validation failed
- `(n / 4) % 1 == 1`: no remote validator configured
- `(n / 8) % 1 == 1`: failure in remote validation
### Usage