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

--version exits with an error code #429

Open
Flamefire opened this issue Dec 5, 2024 · 0 comments
Open

--version exits with an error code #429

Flamefire opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Flamefire
Copy link
Contributor

Brief problem description

The exit code cannot be used to determine if b2 --version ran successfully

Steps to reproduce the issue

b2 --version; echo $?

Actual behavior summary

b2 exits with exit code 1 indicating a problem

Expected behavior summary

The exit code should be zero such that b2 --version || echo "Failed" can be used.

The use case is code like:

if ! version=$(b2 --version); then
# Handle errors like b2 not available or executable
fi
@Flamefire Flamefire added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant