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

Set exit code for auth check #55

Open
james64 opened this issue May 5, 2022 · 0 comments
Open

Set exit code for auth check #55

james64 opened this issue May 5, 2022 · 0 comments

Comments

@james64
Copy link

james64 commented May 5, 2022

This is a feature request. It would be nice if passbolt auth check exited with non-zero status if not logged in. I admit it's kind of arbitrary to call "logged in" successful. However it would help with writting scripts.

I have a script around passbolt find | fqf and I want to check that I am logged in before I run that. Doing [[ "$( passbolt auth check)" != "You are already logged in." ]] feels fragile.

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

No branches or pull requests

1 participant