-
Notifications
You must be signed in to change notification settings - Fork 18
Exit Codes
Authenticode Lint uses exit codes to indicate the final result of running the tool.
0 ("Zero") or "Success" is the exit code when all non-suppressed rules have passed. This is only if the tool is properly configured to run, such as all valid inputs to the command line.
1 ("One") or "Invalid Input" is the exit code if the authlint was unable to run any checks because it was not configured correctly. Invalid Input is returned if any Command-Line-Options are missing or have invalid values.
-help
is treated as invalid input as it does not actually run any rules. This is to prevent any automated tooling from misinterpreting printing help as all rules are passing. Such as case may occur if no command line arguments are specified at all since that is treated as -help
.
2 ("Two") or "Checks Failed" is returned if any non-suppressed checks result in a failure, or if any of the input files are not Authenticode signed. Which checks failed are reported to stdout unless -quiet
is specified.