We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The exit code cannot be used to determine if b2 --version ran successfully
b2 --version
b2 --version; echo $?
b2 exits with exit code 1 indicating a problem
The exit code should be zero such that b2 --version || echo "Failed" can be used.
b2 --version || echo "Failed"
The use case is code like:
if ! version=$(b2 --version); then # Handle errors like b2 not available or executable fi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Brief problem description
The exit code cannot be used to determine if
b2 --version
ran successfullySteps 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:
The text was updated successfully, but these errors were encountered: