Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failures due to missingg credentials generate incorrect exit code #1096

Closed
mprasil opened this issue Mar 7, 2024 · 1 comment
Closed

Failures due to missingg credentials generate incorrect exit code #1096

mprasil opened this issue Mar 7, 2024 · 1 comment
Labels
S-triage Status: Waiting for a maintainer to triage this issue/PR

Comments

@mprasil
Copy link

mprasil commented Mar 7, 2024

I've ran rustic without password by mistake and it failed:

# rustic backup /some/path
[INFO] using config /etc/rustic/rustic.toml
error: No password given. Please use one of the --password-* options.

However exit code was 0:

# echo $?
0

Same for missing repository credentials without anonymous access. I don't think this is correct behavior as it could lead to backup scripts failing silently.

@github-actions github-actions bot added the S-triage Status: Waiting for a maintainer to triage this issue/PR label Mar 7, 2024
@simonsan
Copy link
Contributor

simonsan commented Mar 7, 2024

This is a duplicate, please make sure to search the issues before opening a new one, or start a new discussion.

CC: #927

@simonsan simonsan closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-triage Status: Waiting for a maintainer to triage this issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants