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

Add exit codes #10

Merged
merged 3 commits into from
Jun 23, 2022
Merged

Add exit codes #10

merged 3 commits into from
Jun 23, 2022

Conversation

thomotron
Copy link
Contributor

Adds non-zero exit codes on failure rather than simply returning.

OpenSSH will treat a non-zero exit code as a command failure, so the only hard failures are those leading up to the keys being printed to stdout.

Non-zero exits after printing the keys can be toggled on or off through the raiseAuthorizedKeysErrors config option.

@thomotron thomotron merged commit 8614b8d into dev Jun 23, 2022
@thomotron thomotron deleted the feature/exit-codes branch June 23, 2022 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant