What exit code will I get if check command detects bad pack file?

The docs say that any error will return exit code 1.

However I am not sure if this counts as error, since the command technically executed successfully, it’s just that it finds problems in the repo.

So, if check command detects a bad pack file, will it return exit code 0 or 1?

Thank you!

Any sort of data corruption found by check (or any operation) is not considered to be a successful execution, and will result in a non-zero exit code listed here.

1 Like

Thanks, that is reassuring!