-
-
Notifications
You must be signed in to change notification settings - Fork 234
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working